minor tweak to get tiny perf. improvement
This commit is contained in:
parent
8615e8e90e
commit
2aa542841f
@ -247,8 +247,7 @@ class Doctrine_ORM_Internal_Hydration_StandardHydrator extends Doctrine_ORM_Inte
|
|||||||
}
|
}
|
||||||
} else if ( ! isset($baseElement[$relationAlias])) {
|
} else if ( ! isset($baseElement[$relationAlias])) {
|
||||||
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
|
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
|
||||||
$array = array();
|
$baseElement[$relationAlias] = array();
|
||||||
$driver->setRelatedElement($baseElement, $relationAlias, $array);
|
|
||||||
} else {
|
} else {
|
||||||
$driver->setRelatedElement($baseElement, $relationAlias,
|
$driver->setRelatedElement($baseElement, $relationAlias,
|
||||||
$driver->getElementCollection($entityName));
|
$driver->getElementCollection($entityName));
|
||||||
@ -268,9 +267,9 @@ class Doctrine_ORM_Internal_Hydration_StandardHydrator extends Doctrine_ORM_Inte
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
|
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
|
||||||
$coll =& $driver->getReferenceValue($baseElement, $relationAlias);
|
$coll =& $baseElement[$relationAlias];
|
||||||
} else {
|
} else {
|
||||||
$coll = $driver->getReferenceValue($baseElement, $relationAlias);
|
$coll = $baseElement->_internalGetReference($relationAlias);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($coll !== null) {
|
if ($coll !== null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user