Re: [sqlalchemy] nested inheritance / polymorphic relationships

2013-06-04 Thread Michael Bayer
On Jun 4, 2013, at 1:55 AM, Amir Elaguizy aelag...@gmail.com wrote: Hi there, I have a tree that looks like this, reflected via polymorphic inheritance: what do we mean reflected here, are you reflecting tables from the database, that is,

Re: [sqlalchemy] nested inheritance / polymorphic relationships

2013-06-04 Thread Amir Elaguizy
I didn't intend to use the word reflected in the Programming sense, I meant in the traditional sense: is represented by. That sentence was confusing, sorry! I was saying class B, C, and D are all defined using that same pattern. They each have their own class. Amir On Tuesday, June 4, 2013,

Re: [sqlalchemy] nested inheritance / polymorphic relationships

2013-06-04 Thread Ladislav Lenart
Hello. It seems like I have to choose, D can either be a polymorphic child or it can be a parent - it can't be both. Do I have any options here? I am almost sure you are correct. This is not possible in SA so you have to flatten your hierarchy. I don't know about experiences with