Browse Source

Using buffering in TreeBehavior::recover()

This totally explains why in the past I could not understand how
this worked at all!
Jose Lorenzo Rodriguez 11 years ago
parent
commit
9b3ac45a14
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/ORM/Behavior/TreeBehavior.php

+ 1 - 2
src/ORM/Behavior/TreeBehavior.php

@@ -665,8 +665,7 @@ class TreeBehavior extends Behavior
             ->select($pk)
             ->where([$parent . ' IS' => $parentId])
             ->order($pk)
-            ->hydrate(false)
-            ->bufferResults(false);
+            ->hydrate(false);
 
         $leftCounter = $counter;
         foreach ($query as $row) {