diff --git a/src/Model/Entity/AbstractEntity.php b/src/Model/Entity/AbstractEntity.php index fbbd03d9..ce09ef93 100755 --- a/src/Model/Entity/AbstractEntity.php +++ b/src/Model/Entity/AbstractEntity.php @@ -225,8 +225,8 @@ 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 instanceof AnrSuperClass && $parent_before->getUuid() !== null - ? $parent_before->getUuid() + $parent_before = !$parent_before instanceof AnrSuperClass && $parent_before->get('uuid') !== null + ? $parent_before->get('uuid') : $parent_before->get('id'); } $parent_after = array_key_exists($this->parameters['implicitPosition']['field'], $options) ? $options[$this->parameters['implicitPosition']['field']] : null;