• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data: Delete stops at first object in Cascade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data: Delete stops at first object in Cascade
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: what does LSUIElement really do?
  • Next by Date: Re: garbage collection is ON NSCFDictionary crash
  • Previous by thread: Re: what does LSUIElement really do?
  • Next by thread: Re: Core Data: Delete stops at first object in Cascade
  • Index(es):
    • Date
    • Thread