Is the cascade delete rule right for me?
Is the cascade delete rule right for me?
- Subject: Is the cascade delete rule right for me?
- From: Sam Stigler <email@hidden>
- Date: Sun, 2 Dec 2007 16:52:41 -0800
Hi,
I'm trying to design a Core Data model for a server I'm working on,
and I have a question about delete rules: Can someone please verify
for me that the "cascade" delete rule will only delete the objects at
the destination of the relationship, and not cascade to any objects
that those objects have a relationship to?
Here's what my model looks like so far:
SunSPOT
========
several attributes;
pendingCommands one-to-many relationship to SPOTCommand
delete rule: cascade (or should this be deny?)
SPOTCommand
=============
three attributes;
targetSPOT one-to-one relationship to SunSPOT (inverse of
pendingCommands relationship)
delete rule: nullify
So to make my question more concrete, I want to make sure that if I
delete a SunSPOT (assuming its delete rule is set to cascade), that
won't also delete every targetSPOT that's in its pendingCommands --
it'll just delete the SunSPOT and its pendingCommands, but not the
targetSPOTs, right?
Thanks,
Sam
_______________________________________________
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