[sqlalchemy] Re: Experimenting with more than one level of inheritance.

2007-06-07 Thread svilen
what is your hierarchy? why Boss' mapper inherits from person's one, and not from manager's one? On Thursday 07 June 2007 19:56:30 Daniele Varrazzo wrote: Hello, i'm trying to generalize the examples in the documentation about multiple table inheritance, namely adding a `Boss` subclassing

[sqlalchemy] Re: Experimenting with more than one level of inheritance.

2007-06-07 Thread Michael Bayer
On Jun 7, 2007, at 6:36 PM, Daniele Varrazzo wrote: a polymorphic fetch ses.query(Employee).select() correctly returns objects of all the classes, and the query ses.query(Boss).select() works fine as well. But while i expected ses.query(Manager).select() to fetch bosses too, an exception

[sqlalchemy] Re: Experimenting with more than one level of inheritance.

2007-06-07 Thread Daniele Varrazzo
when was that raised...when defining mappers ? this is all very hard to follow without an attachment of the full code. Yes: things diverged a bit from the starting example. Below a self contained test case. It fails fetching classes neither root nor leaf in an inheritance tree. Am i doing