On Tue, Mar 18, 2008 at 04:56:23PM +0000, Luke Opperman wrote:
> Oleg Broytmann <phd <at> phd.pp.ru> writes:
> >    "New magic attribute 'j' similar to 'q' that automagically does join
> > with the other table in FK/MultipleJoin"?
> 
> Yeah, that's pretty good. Specifically, it has attributes for joins and
> foreignKeys that expand to the SQLBuilder expression to perform the join.
> 
> "New magic attribute 'j' similar to 'q' with attributes for ForeignKey and
> SQLMultipleJoin/SQLRelatedJoin, providing a shorthand for the SQLBuilder join
> expressions to traverse the given relationship. For example, for a ForeignKey
> AClass.j.someB is equivalent to (AClass.q.someBID==BClass.q.id), as is
> BClass.j.someAs for the matching SQLMultipleJoin."

   It took some time as I found there is no documentation about q-magic, so
I dived into SQLObject.txt, restructured it and added a small section about
.q (in the branches 0.9, 0.10 and the trunk).
   Then I added the section about .j to the trunk.

   The new docs are being compiled now to html and will be uploaded to
sqlobject.org in half an hour.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to