Core Data: Delete stops at first object in Cascade
Core Data: Delete stops at first object in Cascade
- Subject: Core Data: Delete stops at first object in Cascade
- From: Jerry Krinock <email@hidden>
- Date: Tue, 3 Feb 2009 10:33:58 -0800
Here's a piece of my object graph, with entities X, B, T and J. X and
J have relationships to other objects in the greater graph, but B and
T have only those shown.
Cascade---> Cascade-->> Nullify--->
-->> X B T J <<--
<<--Nullify <--Nullify <<--Cascade
B is always added to and "owned by" an X. T is a lightweight object
which the user can easily recreate. In a popup menu, the user can
select any available B for a T, but the relationship is optional
because not all "types" of T are can have a B.
If user deletes a J, its Ts are deleted as expected. And, if user
deletes an X, its B is deleted. But the downstream T is not deleted.
Why not?
Thank you,
Jerry Krinock
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden