[sqlalchemy] Re: Error with query and joined table inheritance

2007-11-18 Thread Michael Bayer
On Nov 18, 2007, at 10:15 PM, Matt wrote: I have some classes that inherit from one another, here are the mappers: mapper(Content, content, polymorphic_on=content.c.type, polymorphic_identity='content') mapper(TvContent, content_tv_metadata, inherits=Content, polymorphic_identity='tv

[sqlalchemy] Re: Error with query and joined table inheritance

2007-11-18 Thread Matt
Thanks for the insight Michael -- some records in the content table had a 'type' of one of the subclasses, but not a record in the corresponding subclass table -- works like a charm once I insert records for everything in the subclass tables. Matt On Nov 18, 7:58 pm, Michael Bayer [EMAIL