On Apr 6, 4:27 pm, Michael Bayer <mike...@zzzcomputing.com> wrote: > On Apr 6, 2010, at 3:56 PM, Josh Winslow <jwins...@gmail.com> wrote: > > > I'm attempting to use joined table polymorphism for various types of > > activities. Activities all share a few common features, a location, a > > reference number, time, etc. but some have some further attributes. > > When I set up my map like so: > > mapper(Activity, activities, polymorphic_on=activities.c.type, > > > polymorphic_identity='activity', > > > properties={'location':relation(Location, backref='activities'), > > > 'item':relation(Item, backref='activities')}) > > mapper(Manifest, manifests, polymorphic_on=activities.c.type, > > polymorphic_identity='manifest') > > You're missing an 'inherits' keyword.
Thank you! -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.