Changeset 4707
- Timestamp:
- 07/23/08 22:25:44 (4 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
0.11/lib/Doctrine/Tree/NestedSet.php (modified) (2 diffs)
-
1.0/lib/Doctrine/Tree/NestedSet.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Tree/NestedSet.php
r4706 r4707 161 161 $q = $this->returnQueryWithRootId($q, $rootId); 162 162 163 // FIX: Reported in ticket #1268 164 if ($hydrationMode !== null) { 165 $q = $q->setHydrationMode($hydrationMode); 166 } 167 168 $tree = $q->execute(); 163 $tree = $q->execute(array(), $hydrationMode); 169 164 170 165 if (count($tree) <= 0) { … … 199 194 $q = $this->returnQueryWithRootId($q, $record->getNode()->getRootValue()); 200 195 201 // FIX: Reported in ticket #1268 202 if ($hydrationMode !== null) { 203 $q = $q->setHydrationMode($hydrationMode); 204 } 205 206 return $q->execute(); 196 return $q->execute(array(), $hydrationMode); 207 197 } 208 198 -
branches/1.0/lib/Doctrine/Tree/NestedSet.php
r4706 r4707 161 161 $q = $this->returnQueryWithRootId($q, $rootId); 162 162 163 // FIX: Reported in ticket #1268 164 if ($hydrationMode !== null) { 165 $q = $q->setHydrationMode($hydrationMode); 166 } 167 168 $tree = $q->execute(); 163 $tree = $q->execute(array(), $hydrationMode); 169 164 170 165 if (count($tree) <= 0) { … … 198 193 ->addOrderBy($this->_baseAlias . ".lft asc"); 199 194 $q = $this->returnQueryWithRootId($q, $record->getNode()->getRootValue()); 200 201 // FIX: Reported in ticket #1268 202 if ($hydrationMode !== null) { 203 $q = $q->setHydrationMode($hydrationMode); 204 } 205 206 return $q->execute(); 195 196 return $q->execute(array(), $hydrationMode); 207 197 } 208 198