1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Fixed DDC-1492.

This commit is contained in:
Guilherme Blanco 2011-11-15 01:10:27 -02:00
parent 45d95ad130
commit 77e076f1fd

View File

@ -339,7 +339,7 @@ class ObjectHydrator extends AbstractHydrator
// Get a reference to the parent object to which the joined element belongs.
if ($this->_rsm->isMixed && isset($this->_rootAliases[$parentAlias])) {
$first = reset($this->_resultPointers);
$parentObject = $this->_resultPointers[$parentAlias][key($first)];
$parentObject = $first[key($first)];
} else if (isset($this->_resultPointers[$parentAlias])) {
$parentObject = $this->_resultPointers[$parentAlias];
} else {