I have a data model with abstract entities in the hierarchy. The Item
object knows about its root container (to one relationship), and the
container object knows about its items (too many relationship.)
If I manually set the value for one side of the relationship, the
other side isn't maintained automatically. I've built a fictitious
app which demonstrates the problem.
Setting either side of the relationship doesn't automatically cause
the inverse to update.
NSManagedObjectContext *context = [self managedObjectContext];
id library = [NSEntityDescription
insertNewObjectForEntityForName: @"LibraryNode"
inManagedObjectContext: context];
id libraryItem = [NSEntityDescription
insertNewObjectForEntityForName: @"MP3Item" inManagedObjectContext:
context];
id libraryItem2 = [NSEntityDescription
insertNewObjectForEntityForName: @"MP3Item" inManagedObjectContext:
context];
_______________________________________________
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