Re: CoreData, reset a persistent store
Re: CoreData, reset a persistent store
- Subject: Re: CoreData, reset a persistent store
- From: Pierre Chatelier <email@hidden>
- Date: Thu, 16 Nov 2006 11:40:04 +0100
Again that's the wrong way round to think about it. (...) If you
want to remove all instances of an entity, then you must ensure
that the resulting object graph is valid (there may be relationship
constraints that need to be applied)
Yes, but the NSPersistentStoreCoordinator is initialized with the
model, so the persistent store should know how to cascade deletions
by traversing relationships
Regards,
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden