On Feb 14, 2008, at 12:48 PM, Matt wrote:
> > I'm having some trouble configuring eager loading for a query: > > Query: > domainq = > ctx.current.query(Domain).options(eagerload('company')).all() > > Mapper: > domainmapper = mapper(Domain, domains, extension=ModifiedMapper(), > properties={ > 'company' : relation(Company, uselist=False), > } > ) > > Error: > <type 'exceptions.AttributeError'>: 'str' object has no attribute > 'get_children' > > It works fine if I remove the options(eagerload(...)) part... > theres nothing wrong with that code and the error message would suggest some issue in constructing the outerjoins used by the eagerload, so would have to see the Table constructs in use (as well as a stack trace). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---