فهرست منبع

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