I apologize for not double checking that, the parameter is "joinColumn". It's
in the docs for MultipleJoin, been in code since the beginning as I recall.
- Luke
Quoting jws...@ra...:
> joinColumnName does not seem to exist. Is this only in cvs?
>
> -----Original Message-----
> From: Luke Opperman [mailto:lu...@me...]
> Sent: Sunday, February 29, 2004 3:27 AM
> To: Jeff Sacksteder
> Cc: sql...@li...
> Subject: Re: [SQLObject] MultipleJoin does not respect specified keys
>
>
>> It is apparently attempting to
>> guess what the primary key is based on the Style, even though I specified
>> the column name by hand. This is just a bit beyond my ability to fix at
> the
>> moment.
>
> Yes, it tries to guess based on style in this case. SQLObjects are still
> fairly
> self-contained, the CustAccount class does not search out the appropriate
> ForeignKey in ShipTo automatically to determine the name.
>
> You will want to change your join to specify the column name:
>
> shiptos = MultipleJoin('Shipto', joinColumnName='cust_id')
>
> And that should take care of it.
>
> - Luke
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> sqlobject-discuss mailing list
> sql...@li...
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
--
The Pursuit of Counterfactual Histories
|