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...
thx
m
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---