Changeset 4706 for branches/0.11/lib/Doctrine/Tree/NestedSet.php
- Timestamp:
- 07/23/08 22:21:13 (6 months ago)
- Files:
-
- 1 modified
-
branches/0.11/lib/Doctrine/Tree/NestedSet.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Tree/NestedSet.php
r4656 r4706 159 159 } 160 160 161 $q = $this->returnQueryWithRootId($q, $rootId)->setHydrationMode($hydrationMode); 161 $q = $this->returnQueryWithRootId($q, $rootId); 162 163 // FIX: Reported in ticket #1268 164 if ($hydrationMode !== null) { 165 $q = $q->setHydrationMode($hydrationMode); 166 } 167 162 168 $tree = $q->execute(); 163 169 … … 191 197 $q->addWhere($this->_baseAlias . ".lft >= ? AND " . $this->_baseAlias . ".rgt <= ?", $params) 192 198 ->addOrderBy($this->_baseAlias . ".lft asc"); 193 $q = $this->returnQueryWithRootId($q, $record->getNode()->getRootValue()) 194 ->setHydrationMode($hydrationMode); 199 $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 195 206 return $q->execute(); 196 207 }