Should i use Cascade or nullify in Core Data for a relationship?

Viewed 3878

I have a one-to-many relationship and I am just trying to get a few things straight. When I set the relationship from A <-->> B everything is great and works out just the way I like. But when I want to change the relationship, clear everything out and add a couple different B's (than I did before), would I delete the relationship using nullify or cascade if I wanted it to be removed on both ends?

Also could any one give me a quick example of how I might go about this?

I was thinking something like [b setValue:nil forKey:myRelationship]

Is that anywhere close? Or do I need something else?

Thanks.

1 Answers
Related