CoreData relationships in a child context are not isolated?

Hi,

I am using a child NSManagedContext trying to isolate changes to a NSManagedObject from changes done to the same object in the parent NSManagedObjectContext.

This works fine for normal properties, but any changes to relationships performed on the object in the parent context will show up immediately in the child object as well.

Is this the intended behavior? If yes is there a way to create an "isolated" version of an NSManagedObject?

Thanks in advance for any hints!

Cheers, Michael

Ok, I found the issue (in case anyone with similar issues stumbles across this thread): If you use Set as the type of the relationship property in the NSManagedObject derived class, the above described behavior occurs. Stick with the good old NSSet and it works as expected.

CoreData relationships in a child context are not isolated?
 
 
Q