The function for a relationship is like: FUNCTION($manager, "destinationInstancesForEntityMappingNamed:sourceInstances:","employeesToEmployees",$source.employees")
What is this "Function"? How will it be called? Is there any guide introducing to this?
I’ve read Apple’s
Core Data Model Versioning and Data Migration programming guide
but I still don’t get this.
This is a “function expressions with arbitrary method invocations” which seem to be very poorly documented. The only reference that I know of is one paragraph in the NSExpression Class Reference:
The quoting in that sample code seems be incorrect. But the following code compiles and runs on iOS 5/6:
So in your case, it is a function expression which calls, when evaluated
where
$managerand$sourceare replaced by the migration manager and the source object, as described in Mapping Model Objects in the “Core Data Model Versioning and Data Migration Programming Guide”.