Skip to content

Commit f10274c

Browse files
authored
Update AbstractEntity.php
Fixed the validation of the getUuid existence in the exchangeArray method.
1 parent 1dfa885 commit f10274c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Model/Entity/AbstractEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ public function exchangeArray(array $options, $partial = false)
225225
if (!$this->squeezeAutoPositionning && isset($this->parameters['implicitPosition']['field'])) {
226226
$parent_before = $this->get($this->parameters['implicitPosition']['field']);
227227
if (is_object($parent_before)) {
228-
$parent_before = !$parent_before instanceof AnrSuperClass && $parent_before->getUuid() !== null
229-
? $parent_before->getUuid()
228+
$parent_before = !$parent_before instanceof AnrSuperClass && $parent_before->get('uuid') !== null
229+
? $parent_before->get('uuid')
230230
: $parent_before->get('id');
231231
}
232232
$parent_after = array_key_exists($this->parameters['implicitPosition']['field'], $options) ? $options[$this->parameters['implicitPosition']['field']] : null;

0 commit comments

Comments
 (0)