Re: [SQLObject] Intermediate table in RelatedJoins
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2009-08-12 10:38:14
|
On Wed, Aug 12, 2009 at 11:25:58AM +0100, Miguel Tavares wrote: > You stated in a previous email (one minute before this one) that > sqlobject doesn't support multiple intermediate tables. I meant - for a single RelatedJoin. But you can crate as many different joins - just name the table explicitly: class A (SQLObject): B1 = sqlobject.RelatedJoin ('B', intermediateTable='a1_b1') B2 = sqlobject.RelatedJoin ('B', intermediateTable='a2_b2') class B (SQLObject): A1 = sqlobject.RelatedJoin ('A', intermediateTable='a1_b1') A2 = sqlobject.RelatedJoin ('A', intermediateTable='a2_b2') Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |