From 33fbb4f3531824b48687efe64ba88bed4c33ba1e Mon Sep 17 00:00:00 2001 From: pookey Date: Sat, 2 Dec 2006 08:57:45 +0000 Subject: [PATCH] previous fix resulted in php segfaulting --- lib/Doctrine/Hydrate.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index 684d00b35..cfc8ee475 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -395,8 +395,7 @@ abstract class Doctrine_Hydrate extends Doctrine_Access { $prev = $this->initRelated($prev, $name); // aggregate values have numeric keys - - //if(isset($row[0])) { + if(isset($row[0])) { $path = array_search($name, $this->tableAliases); $alias = $this->getPathAlias($path); @@ -410,7 +409,7 @@ abstract class Doctrine_Hydrate extends Doctrine_Access { $prev[$name]->setAggregateValue($agg, $value); } - //} + } continue; }