1
0
mirror of synced 2025-01-31 04:21:44 +03:00

minor refactoring

This commit is contained in:
romanb 2008-09-13 20:12:08 +00:00
parent 6db507c465
commit 8615e8e90e

View File

@ -266,16 +266,16 @@ class Doctrine_ORM_Internal_Hydration_StandardHydrator extends Doctrine_ORM_Inte
$driver->getElement($data, $entityName));
}
}
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
if (($coll =& $driver->getReferenceValue($baseElement, $relationAlias)) !== null) {
$this->_updateResultPointer($resultPointers, $coll, $index, $dqlAlias, $oneToOne);
}
$coll =& $driver->getReferenceValue($baseElement, $relationAlias);
} else {
if (($coll = $driver->getReferenceValue($baseElement, $relationAlias)) !== null) {
$this->_updateResultPointer($resultPointers, $coll, $index, $dqlAlias, $oneToOne);
}
$coll = $driver->getReferenceValue($baseElement, $relationAlias);
}
if ($coll !== null) {
$this->_updateResultPointer($resultPointers, $coll, $index, $dqlAlias, $oneToOne);
}
}
// append scalar values to mixed result sets