createRelationships(forDestination:in:manager:)
Constructs the relationships between the newly-created destination instances.
Declaration
func createRelationships(forDestination dInstance: NSManagedObject, in mapping: NSEntityMapping, manager: NSMigrationManager) throwsParameters
- dInstance:
The destination instance for which to create relationships.
- mapping:
The mapping object in use.
- manager:
The migration manager performing the migration.
Discussion
You can use this stage to (re)create relationships between migrated objects—you use the association lookup methods on the NSMigrationManager instance to determine the appropriate relationship targets.