Skip to content

Commit

Permalink
Use updates as patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Nov 28, 2024
1 parent 222212b commit 991a3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public function saveObject(string $objectType, array $object, bool $updateVersio
$mapper = $this->getMapper($objectType);
// If the object has an id, update it; otherwise, create a new object
if (isset($object['id']) === true) {
return $mapper->updateFromArray($object['id'], $object, $updateVersion);
return $mapper->updateFromArray($object['id'], $object, $updateVersion, patch: true);
}
else {
return $mapper->createFromArray($object);
Expand Down

0 comments on commit 991a3da

Please sign in to comment.