CopyFactory::attachToMoreRelevantHasOne
Usage: Find the copied ("NEW") equivalent of the old has-one relation and attach it to the newObject ...
Signature
public function attachToMoreRelevantHasOne(DataObject
$copyFrom,
DataObject
$newObject,
String
$hasOneMethod,
DataList
$dataListToChooseFrom )
Parameters
$copyFrom
— object
$newObject
— object
$hasOneMethod
— object- - the fieldname (method) of the has one relations (e.g. MyOtherDataObject)
$dataListToChooseFrom
— object
Returns
- CopyFactory