Skip to content

Commit

Permalink
Using buffering in TreeBehavior::recover()
Browse files Browse the repository at this point in the history
This totally explains why in the past I could not understand how
this worked at all!
  • Loading branch information
lorenzo committed Jan 9, 2015
1 parent 74e90e1 commit 9b3ac45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ORM/Behavior/TreeBehavior.php
Expand Up @@ -665,8 +665,7 @@ protected function _recoverTree($counter = 0, $parentId = null)
->select($pk)
->where([$parent . ' IS' => $parentId])
->order($pk)
->hydrate(false)
->bufferResults(false);
->hydrate(false);

$leftCounter = $counter;
foreach ($query as $row) {
Expand Down

0 comments on commit 9b3ac45

Please sign in to comment.