Author: romanb
Date: 2008-09-13 21:29:44 +0100 (Sat, 13 Sep 2008)
New Revision: 4967
Modified:
trunk/lib/Doctrine/ORM/Internal/Hydration/StandardHydrator.php
Log:
minor tweak to get tiny perf. improvement
Modified: trunk/lib/Doctrine/ORM/Internal/Hydration/StandardHydrator.php
===================================================================
--- trunk/lib/Doctrine/ORM/Internal/Hydration/StandardHydrator.php
2008-09-13 20:12:08 UTC (rev 4966)
+++ trunk/lib/Doctrine/ORM/Internal/Hydration/StandardHydrator.php
2008-09-13 20:29:44 UTC (rev 4967)
@@ -247,8 +247,7 @@
}
} else if ( ! isset($baseElement[$relationAlias])) {
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
- $array = array();
- $driver->setRelatedElement($baseElement,
$relationAlias, $array);
+ $baseElement[$relationAlias] = array();
} else {
$driver->setRelatedElement($baseElement,
$relationAlias,
$driver->getElementCollection($entityName));
@@ -268,9 +267,9 @@
}
if ($hydrationMode == Doctrine_Query::HYDRATE_ARRAY) {
- $coll =& $driver->getReferenceValue($baseElement,
$relationAlias);
+ $coll =& $baseElement[$relationAlias];
} else {
- $coll = $driver->getReferenceValue($baseElement,
$relationAlias);
+ $coll =
$baseElement->_internalGetReference($relationAlias);
}
if ($coll !== null) {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---