ctx.current.query(B).filter_by(A.c.name.like('%foo%'))
added the join manually:
ctx.current.query(B).filter(B.c.xid ==
A.c.xid).filter_by(A.c.name.like('%foo%'))
m
On Apr 24, 2:33 pm, Matt [EMAIL PROTECTED] wrote:
I have 2 classes A and B which are mapped each to their own table.
There is
On Apr 24, 2008, at 6:53 PM, Matt wrote:
ctx.current.query(B).filter_by(A.c.name.like('%foo%'))
added the join manually:
ctx.current.query(B).filter(B.c.xid ==
A.c.xid).filter_by(A.c.name.like('%foo%'))
in 0.3, also consider
query(B).join('arelation').filter(A.c.name=='foo')
a lot