destinationInstances(forEntityMappingName:sourceInstances:)
Returns the managed object instances created in the destination store for the named entity mapping for the given array of source instances.
Declaration
func destinationInstances(forEntityMappingName mappingName: String, sourceInstances: [NSManagedObject]?) -> [NSManagedObject]Parameters
- mappingName:
The name of an entity mapping in use.
- sourceInstances:
A array of managed objects in the source store.
Return Value
An array containing the managed object instances created in the destination store for the entity mapping named mappingName for sourceInstances. If sourceInstances is nil, all of the destination instances created by the specified property mapping are returned.
Discussion
This method throws an NSInvalidArgumentException exception if mappingName is not a valid mapping name.