[DDC-2759] Fix regression in ArrayHydrator introduced in DDC-1884 at SHA c7b4c9bf0fbc5dca830e0a797cea470510def994
This commit is contained in:
parent
7249804e3f
commit
9a3298347c
@ -190,17 +190,14 @@ class ArrayHydrator extends AbstractHydrator
|
|||||||
( ! isset($baseElement[$relationAlias]))
|
( ! isset($baseElement[$relationAlias]))
|
||||||
) {
|
) {
|
||||||
$baseElement[$relationAlias] = null;
|
$baseElement[$relationAlias] = null;
|
||||||
} else if (
|
} else if ( ! isset($baseElement[$relationAlias])) {
|
||||||
( ! isset($baseElement[$relationAlias])) ||
|
|
||||||
( ! isset($this->_identifierMap[$path][$id[$parent]][$id[$dqlAlias]]))
|
|
||||||
) {
|
|
||||||
$baseElement[$relationAlias] = $data;
|
$baseElement[$relationAlias] = $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$coll =& $baseElement[$relationAlias];
|
$coll =& $baseElement[$relationAlias];
|
||||||
|
|
||||||
if ($coll !== null) {
|
if (is_array($coll)) {
|
||||||
$this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne);
|
$this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user