CoreData - Does changing one side of relation ship effects the other side
I have a one to many relationship between Animal and Exhibit. One Exhibit can contain many animals.
- Does changing the animal exhibit will automatically change the other side and remove the animal from the exhibit, or should I do from the other side too?
- Does setting exhibit.animals = nil removes all the relationships ?
- Yes, if you have reverse relationship between Exhibit and Animal
- Yes, it will delete all the relationships, but wether it deletes the Exhibits themselfe, depends on Delete Rule.