Browse Source

[Tree] Materialized Path (MongoDB): Small fix in repo

comfortablynumb 13 years ago
parent
commit
670a2fbc46

+ 1 - 1
lib/Gedmo/Tree/Document/MongoDB/Repository/MaterializedPathRepository.php

@@ -28,7 +28,7 @@ class MaterializedPathRepository extends AbstractTreeRepository
      *
      * @return \Doctrine\ODM\MongoDB\Query\Builder
      */
-    public function getTreeQueryBuilder($rootNode)
+    public function getTreeQueryBuilder($rootNode = null)
     {
         return $this->getChildrenQueryBuilder($rootNode, false, null, 'asc', true);
     }