$updateByValue =
$this->
getValueFromPath($record,
$updateByFieldPath);
if ($updateByValue === null
) { $record['_error'
] =
new UpdatedByValueNotFoundException($definition->
getEntityName(),
$updateByField);
return $record;
} $criteria =
new Criteria();
$criteria->
setLimit(1
);
$updateByField =
$this->
handleTranslationsAssociation( $definition,
$updateByFieldPath,
$criteria );
if (!
$updateByField) { return $record;
} if ($field =
$definition->
getField($updateByField)) { // deserialize for bool, date, int fields...