On May 30, 2008, at 4:06 PM, Alan Ward wrote:


On May 30, 2008, at 4:54 PM, Mike Schrag wrote:

OK, so it sounds like the update is fine but how many SQL statements occur when you try to insert a new Person?
I would expect an insert to fire the faults in this case, but that should be the same for a many-to-many with a join entity as long as you are calling addObjectToBothSideBlah on both person and company of the join (which you should be to keep them consistent).

So, my memory is still not 100% clear on this one but I think we're honing in on why I don't flatten.... If the relationship is not flattened then I have the option of not using addObjectToBothSides if I know I am doing an insert and then discarding the EO (i.e. I don't care about keeping my object graph consistent right now). It means I can avoid faulting in a whole slew of stuff when I know I don't need it.

Maybe I am confused. If you have a flattened to-many, you can also not use addObjectToBothSides and get the same behavior, I think. I can't think of why it would be different. And I have had my coffee today! I think that flattening just removes the need for you to manually handle the join table.


Chuck



As it turns out i accidentally deleted my ManyToMany test-case app just now and I have to recreate it. But I definitely expect it to fire the faults here.

ms

_______________________________________________
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/award%40apple.com

This email sent to [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/chill%40global-village.net

This email sent to [EMAIL PROTECTED]

--

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      ([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