浏览代码

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

comfortablynumb 13 年之前
父节点
当前提交
670a2fbc46
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Gedmo/Tree/Document/MongoDB/Repository/MaterializedPathRepository.php

+ 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);
     }