Contents

sourceInstances(forEntityMappingName:destinationInstances:)

Returns the managed object instances in the source store used to create the given destination instances for the passed in property mapping.

Declaration

func sourceInstances(forEntityMappingName mappingName: String, destinationInstances: [NSManagedObject]?) -> [NSManagedObject]

Parameters

  • mappingName:

    The name of an entity mapping in use.

  • destinationInstances:

    A array of managed objects in the destination store.

Return Value

An array containing the managed object instances in the source store used to create destinationInstances using the entity mapping named mappingName. If destinationInstances is nil, all of the source instances used to create the destination instance for this property mapping are returned.

Discussion

This method throws an NSInvalidArgumentException exception if mappingName is not a valid mapping name.

See Also

Managing Sources and Destinations