Reputation: 12663
I have a a one-to-many relationship as an NSOrderedSet
on an NSManagedObject
.
When the addObject:
method is called on the ordered set (which I'm calling from a property on an NSManagedObjectModel
subclass object), however, the inverse relationship is not being set automatically. What can cause this?
As a related note, I am using Magical Record to make it easier to map data to the NSManagedObject
objects.
Further, I've also referred to this post, but I'm not overriding these methods on my subclass:
Core Data Inverse Relationship Not Being Set
Upvotes: 1
Views: 1248
Reputation: 12663
NSOrderedSet
has serious bugs in Core Data. See this post on ways to get around them for the time being:
Exception thrown in NSOrderedSet generated accessors
Upvotes: 1