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.

  1. 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?
  2. Does setting exhibit.animals = nil removes all the relationships ?

Thanks

Shani

Answers


  1. Yes, if you have reverse relationship between Exhibit and Animal
  2. Yes, it will delete all the relationships, but wether it deletes the Exhibits themselfe, depends on Delete Rule.

Need Your Help

Setting/getting session attribute in JSF

session jsf authentication servlet-filters

I am trying to implement simple log in functionality in a JSF application. Following this answer, I have implemented an AuthenticationFilter. I am trying to set an object in my managed bean as :

jar file in Grails project lib directory not found

grails groovy

I have a grails project and a jar file in the lib directory of the grails project. The problem is when i run the app I get class not found errors on classes within the jar file. Why can these not b...