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
|