[sqlalchemy] Re: Loading classes polymorphically

2009-08-13 Thread Michael Bayer
you're looking for query.with_polymorphic(). see the mapping documentation section on joined table inheritance for details. rake wrote: Assuming I have the following simplified classes: class A(Base): __tablename__ = 'a' id = Column(Integer, primary_key=True) type =

[sqlalchemy] Re: Loading classes polymorphically

2009-08-13 Thread rake
Thanks your quick respone, that is exactly what I was looking for. On Aug 13, 10:40 am, Michael Bayer mike...@zzzcomputing.com wrote: you're looking for query.with_polymorphic().  see the mapping documentation section on joined table inheritance for details. rake wrote: Assuming I have