forked from magicalpanda/MagicalRecord
-
Notifications
You must be signed in to change notification settings - Fork 0
General tips
faken edited this page Feb 8, 2012
·
3 revisions
If you wish to import your initial data for CoreData-Entities with nested relations, you have to define the primary key (an attribute, which identifies your entity unique) in the "User Info"-Section (the Key should have the Value: "primaryRelationshipKey") of the relevant relationship-Attribute.
For example, if you have an entity called "Recipe" which has an to many relationship to an entity called "Component" which is identified unique by an attribute called "name" you have to make the following configuration in the "User Info" Section of your relational attribute (e.g. "components"):