> 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). > I don't have the time most of today to get into it so I can't confirm > what's going on. Any chance you could map to a straight join of all four > tables instead of a join to two sub-joins ? 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
