CopyFactory::copyOriginalHasOneItem
From a copied object, copy the has-one of the copyFrom Object to the newObject.
Old and new copy point to the same has-one record.
Signature
public function copyOriginalHasOneItem(DataObject
$copyFromParent,
DataObject
$newObjectParent,
String
$relationalFieldForChildWithoutID )
Parameters
$copyFromParent
— object
$newObjectParent
— object
$relationalFieldForChildWithoutID
— object- - e.g. MyImage
Returns
- CopyFactory