On Apr 18, 2007, at 4:39 PM, Kevin Windham wrote:


On Apr 18, 2007, at 5:08 PM, Chuck Hill wrote:


On Apr 18, 2007, at 2:55 PM, Kevin Windham wrote:

I knew this would be a thorny issue, and I was hoping not to have to deal with it. When fooling around with different ideas, I decided to try adding the user to the club instead of adding the club to the user.

addObjectsToBothSidesOfRelationshipWithKey


They should be equivalent.

Of course they shouldn't. That is why addObjectsToBothSidesOfRelationshipWithKey (a) exists and (b) is recommended.

What am I missing? When I look at the DB

DB schmeebee. It is not about the DB. The DB is just an artifact of implementation. Fuggedaboutit. It is about the Object Graph. WO is all about Real, Live Objects living in the Object Graph. The DB is just a persistent storage mechanism.


the same result occurs whether I add user to club or club to user. The same IDs end up in the join table. Or are you referring to the WebObjects manages it's in memory graph. I can see that is different by the fact I got different results, but am I missing something else? I'd like to understand this better if I can.

You are worrying about the wrong thing. YOU worry about the Object Graph. Let EOF worry about implementation artifacts. That is what it does.

Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
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