Skip to content

Commit

Permalink
Fixed DDC-1492.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeblanco authored and beberlei committed Nov 19, 2011
1 parent 6b3edbb commit 2e7318d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ protected function _hydrateRow(array $data, array &$cache, array &$result)
// 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 {
Expand Down

0 comments on commit 2e7318d

Please sign in to comment.