Fixed DDC-1492.
This commit is contained in:
parent
45d95ad130
commit
77e076f1fd
@ -339,7 +339,7 @@ class ObjectHydrator extends AbstractHydrator
|
|||||||
// Get a reference to the parent object to which the joined element belongs.
|
// Get a reference to the parent object to which the joined element belongs.
|
||||||
if ($this->_rsm->isMixed && isset($this->_rootAliases[$parentAlias])) {
|
if ($this->_rsm->isMixed && isset($this->_rootAliases[$parentAlias])) {
|
||||||
$first = reset($this->_resultPointers);
|
$first = reset($this->_resultPointers);
|
||||||
$parentObject = $this->_resultPointers[$parentAlias][key($first)];
|
$parentObject = $first[key($first)];
|
||||||
} else if (isset($this->_resultPointers[$parentAlias])) {
|
} else if (isset($this->_resultPointers[$parentAlias])) {
|
||||||
$parentObject = $this->_resultPointers[$parentAlias];
|
$parentObject = $this->_resultPointers[$parentAlias];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user