with_polymorphic doesn't limit what classes are loaded. It only controls how the SQL is rendered such that fewer subsequent queries are needed when attributes are referenced on the resulting objects, and also so that you can specify filtering criterion on those joined tables.
On Nov 28, 2008, at 3:51 PM, [EMAIL PROTECTED] wrote: > > what should query.with_polymorphic generate? > e.g. given query(A).with_polymorphic( B,D) > it does something like > select ... > from A left outer join B left outer join D > > and no discriminator filter.. > > which includes all A's regardless of their type... > > svil > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---