newObjectID(for:referenceObject:)
Returns a new object ID that uses given data as the key.
Declaration
func newObjectID(for entity: NSEntityDescription, referenceObject data: Any) -> NSManagedObjectIDParameters
Return Value
A new object ID for an instance of the entity specified by entity and that uses data as the key.
Discussion
You should not override this method.