Skip to content

Commit

Permalink
Merge pull request #69 from monarc-project/patch-autoposition-fix
Browse files Browse the repository at this point in the history
Update AbstractEntity.php
  • Loading branch information
ruslanbaidan authored Feb 12, 2024
2 parents 484a015 + 46e2747 commit 1dfa885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Entity/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 1dfa885

Please sign in to comment.