kl. 20:26:24 UTC+2 lørdag 26. april 2014 skrev Michael Bayer følgende:
>
>
> On Apr 26, 2014, at 2:23 PM, Michael Bayer 
> <mik...@zzzcomputing.com<javascript:>> 
> wrote:
>
> If OTOH you do in fact want this query to take the current Company.id into 
> account, this would be simple using primaryjoin/secondaryjoin/secondary, it 
> just requires that the IN is unwrapped into a regular join criterion. 
>  Assume the name of the CompaniesUsers table is “companies users”:
>
>
> sorry, this is an editing problem, this sentence should read:
>
> If OTOH you want a full blown relationship(), which grants the ability to 
> automatically compose this join condition into a larger query as well as 
> eager loading, this would be simple…. (rest of sentence follows)
>
> On IRC I was told that I should look into association proxies and 
> relationships - and I looked them up in the documentation but I couldn't 
> find any relevant information regarding my question. But! I got it working 
> now, thanks! I was simply looking for the "wrong solution" :)
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to