Re: willDelete() is not getting fired for children in a tree structured entity
Re: willDelete() is not getting fired for children in a tree structured entity
- Subject: Re: willDelete() is not getting fired for children in a tree structured entity
- From: David Avendasora <email@hidden>
- Date: Tue, 27 Jul 2010 07:20:50 -0400
On Jul 26, 2010, at 1:28 PM, Chuck Hill wrote:
>> I also heard that if an entity has multiple levels of hierarchy then delete cascade won't work after second level.
>
> I have not heard that. I have deleted several levels with no problems.
Whenever I ran into problems with this, it was _always_ a modeling problem, and never a really obvious one. Ownership settings, delete rules and nullable are all things that can trip you up when trying to do multiple levels.
In the end, once I got the model right, cascading deletes through 10-15 levels (recursive relationship structure) worked. It was actually quite scary how well it worked and it could delete huge amounts of data starting with just one object.
Dave _______________________________________________
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