merging instances of an entity
merging instances of an entity
- Subject: merging instances of an entity
- From: Amy Gibbs <email@hidden>
- Date: Sat, 18 Sep 2010 12:41:41 +0100
Hi,
in a core data app, is there an easy way to 'merge' two instances of
an entity, for example where something has been accidentally added
twice, and each instance has it's own relationships.
I'd like to merge the two instances into a single one where basically
all of the second instances relationships are copied to the first
instance, then the second instance is deleted. In my scenario I think
it would be OK to just 'add' the second instances details to the
first, I don't see that anything in the second instance would cause
data/relationships to be deleted in the first.
If I have to do this manually, is it that simple, just copy the
relationships (not that I know how to do that but it must be possible)
and delete the second instance?
Thanks,
_______________________________________________
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