Permalink
Browse files

Don't detach entities when fetching trees

NestedSet should not assume objects are newly fetched from the database.
Thanks to Luka Novsak for finding this.

This reverts commit 72640e2.
  • Loading branch information...
Brandon Turner
Brandon Turner committed Nov 9, 2010
1 parent b4f460f commit c3f72a2372b93943d7fa8749718bc1ed051bc433
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/DoctrineExtensions/NestedSet/Manager.php
@@ -177,12 +177,6 @@ public function fetchBranchAsArray($pk, $depth=null)
return array();
}
- // Detach the fetched node as Doctrine uses it instead of the node
- // fetched as part of the tree. The node fetched as part of the tree
- // may have additional joined classes via base query builder.
- $this->getEntityManager()->detach($node);
-
-
$qb = $config->getBaseQueryBuilder();
$alias = $config->getQueryBuilderAlias();

0 comments on commit c3f72a2

Please sign in to comment.