Skip to content
faken edited this page Feb 8, 2012 · 3 revisions

Importing data for entities with nested relations

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"):

Screenshot of the User Info Settings

Clone this wiki locally