On Feb 11, 2011, at 3:37 PM, cvr wrote:
> Thanks for your immediate reply.
>
> I'm not sure, but I don't think this is exactly what I was looking
> for.
>
> I would have liked to be able to filter on both table A and B. I take
> it that is not directly possible then?
q = A.query.join(B.aas).filter(B.id == 10)
print q
Looks as if it generates the proper SQL. I'm not sure why Elixir or SA don't
default on the single one relationship between two entities, but it seems
that's just the way it is.
Diez
--
You received this message because you are subscribed to the Google Groups
"SQLElixir" 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/sqlelixir?hl=en.