From 46e2747403b2106e525740ee4ac6d36c919b8606 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Mon, 12 Feb 2024 13:01:57 +0100 Subject: [PATCH] Update AbstractEntity.php Fixed the issues of the position update, `uuid` was wrongly used as Anr `id`. --- src/Model/Entity/AbstractEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Entity/AbstractEntity.php b/src/Model/Entity/AbstractEntity.php index be19e2f3..fbbd03d9 100755 --- a/src/Model/Entity/AbstractEntity.php +++ b/src/Model/Entity/AbstractEntity.php @@ -225,7 +225,7 @@ public function exchangeArray(array $options, $partial = false) if (!$this->squeezeAutoPositionning && isset($this->parameters['implicitPosition']['field'])) { $parent_before = $this->get($this->parameters['implicitPosition']['field']); if (is_object($parent_before)) { - $parent_before = $parent_before->get('uuid') !== null + $parent_before = !$parent_before instanceof AnrSuperClass && $parent_before->getUuid() !== null ? $parent_before->getUuid() : $parent_before->get('id'); }