In coredata I can work with one Entity fairly well, mostly because its nicely documented on the internet. However when i get to relationships i keep finding the same data over a
Read Custom To-Many Relationship Accessor Methods. You can use the standard -mutableSetValueForKey: method to access your relationship:
NSMutableSet *ergTimes = [person mutableSetValueForKey:@"ergTimes"];
[ergTimes addObject:newErgTime];
Or, if you need to do the above in a number of places, you might want to implement an accessor for the 'ergTimes' property so that you can add a time directly:
[person addErgTimesObject:newErgTime];
Examples are given in the section I cited above.