bojanb wrote: > >> with_polymorphic can be set against any subset of classes, not just '*'. > > Yes, but in the first case I can't use with_polymorphic() on the > query, because the query class is not the problem - I want the > polymorphic load on an attribute (relation) of the queried class in > order for the eagerload to work. Therefore I must set with_polymorphic > in the mapper of that other class. But since mappers are global for > the whole application, I can't just set it to a subset of the classes > (then some other queries in the application won't work correctly).
not like I'll have time to get to this soon, but there *is* a ticket to address this, #1106. > > I'll try using single-table inheritance first, then I'll try that. It > would be great if you could look up into this when you have time. Just > run the last code example and SQL echo and error message should be > self-explanatory. will do ! --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---