Explorar o código

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

comfortablynumb %!s(int64=13) %!d(string=hai) anos
pai
achega
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
      * @return \Doctrine\ODM\MongoDB\Query\Builder
      */
      */
-    public function getTreeQueryBuilder($rootNode)
+    public function getTreeQueryBuilder($rootNode = null)
     {
     {
         return $this->getChildrenQueryBuilder($rootNode, false, null, 'asc', true);
         return $this->getChildrenQueryBuilder($rootNode, false, null, 'asc', true);
     }
     }