Damon wrote:
>
> MUST we explicitly supply the join to such query objects? Or is there
> some way that SA can figure out that tbl_people_documents is in
> between tbl_people and tbl_documents on its own? Perhaps there is
> something we can add to the tbl_people/tbl_documents object
> definitions that clues SA in?

join on the relation.


query(A).join(A.relation_to_b).filter(B.foo == 'bar')

if you're saying this,

query(A).join(B)

that isn't really how query.join() is supposed to work - it's not using
ORM channels to figure out the join in that case.  all documentation and
examples use the first format.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to