zzzeek / test_sqlalchemy

0 stars 0 forks source link

add with_polymorphic() to query #974

Closed sqlalchemy-bot closed 16 years ago

sqlalchemy-bot commented 16 years ago

Issue created by Michael Bayer (zzzeek)


this will create joins along polymorphic paths. if select_table is enabled on the mapper, then its ignored.

session.query(Person).with_polymorphic(Engineer).with_polymorphic(Manager).filter(....)

add it to join() also...sigh

session.query(Company).join([Engineer), Engineer.computers](('employees',))

session.query(Company).join([(Engineer, Manager))](('employees',)).filter(or_(Engineer.., Manager...))
sqlalchemy-bot commented 10 years ago

Michael Bayer (zzzeek) wrote:


Removing milestone: 0.4.xx (automated comment)

sqlalchemy-bot commented 16 years ago

Michael Bayer (zzzeek) wrote:


we've added with_polymorphic and of_type() for the join(), any() use case

sqlalchemy-bot commented 10 years ago

Changes by Michael Bayer (zzzeek): removed "0.4.xx" milestone

sqlalchemy-bot commented 16 years ago

Changes by Michael Bayer (zzzeek): set state to "resolved"