Re: Deleting Flattened Relationships
Re: Deleting Flattened Relationships
- Subject: Re: Deleting Flattened Relationships
- From: Chuck Hill <email@hidden>
- Date: Mon, 20 Feb 2006 10:33:21 -0800
On Feb 19, 2006, at 4:02 PM, James Cicenia wrote:
I have a flattened relationship on a many to many.
ObjectA <-->> ObjectB <<--ObjectC
I have objectA owning destination and cascade delete set in EOModeler.
I do the same with Object C
1) Is this the correct way to setup EOModeler?
Almost, see below.
2) Now will deleting either Object A or Object C automatically
delete the related ObjectB records?
Yes, though it is always good to test assumptions that you are unsure
of in your unit tests. You should also have Nullify set on the
relationships out of ObjectB so that if an ObjectC is deleted,
dangling references to it are not left in ObjectAs.
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden