Johan,

Is this truly a one-to-one relationship as modeled? I mean are the tables joined PK <----> PK? Or is this modeled as a one-to-many with the many-side limited to one related object in the array?

If this is a true PK to PK one-to-one relationship, which way have you set "Propagates Primary Key?" If it's a true one-to-one it's that property of the model that is responsible to setting the destination PK.

If it's the latter case, and D2W is not properly calling addObjectToBothSidesOfRelationshipWithKey, then it wouldn't be doing that for any relationships in the system. To be honest I'm not sure if D2W actually does, or does not, use that method to manage it's relationships.

Thinking about how D2W uses the browser style input control to set an entire array of objects on a to-many relationship, I have my doubts that it is using addObjectToBothSidesOfRelationshipWithKey. It may instead just simply use the accessors to set the array.

On Jul 12, 2007, at 2:16 PM, Johan Henselmans wrote:

I am updating a old D2W app to the latest and greatest Wonder/ Eclipse combo, and after adding some records to a database, I noticed that the table on the other side of the relationship did not get an update in it's foreign_id key field (it's a one-to-one relationship with with relationships defined on both sides). I seem to remember that normally, in D2W both sides would get updated.

Or is that some romantic idea I had about the D2W taking care of that kind of mundane activities?

If D2W does not take care of it, how should I then take care of it?


Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/robertwalker1% 40mac.com

This email sent to [EMAIL PROTECTED]

--
Robert Walker
[EMAIL PROTECTED]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to