diff --git a/lib/Service/SynchronizationService.php b/lib/Service/SynchronizationService.php index 0220c67..c334502 100644 --- a/lib/Service/SynchronizationService.php +++ b/lib/Service/SynchronizationService.php @@ -599,8 +599,9 @@ private function updateTargetOpenRegister(SynchronizationContract $synchronizati switch ($action) { case 'save': $target = $objectService->saveObject($register, $schema, $targetObject); + $targetId = is_array($target) ? $target['uuid'] : $target->getUuid(); // Get the id form the target object - $synchronizationContract->setTargetId($target->getUuid()); + $synchronizationContract->setTargetId($targetId); break; case 'delete': $objectService->deleteObject(register: $register, schema: $schema, uuid: $synchronizationContract->getTargetId());