Просмотр исходного кода

[Tree] do not call children statically, closes #231

gedi 13 лет назад
Родитель
Сommit
1251cacf7a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/Gedmo/Tree/Entity/Repository/NestedTreeRepository.php

+ 1 - 1
lib/Gedmo/Tree/Entity/Repository/NestedTreeRepository.php

@@ -815,7 +815,7 @@ class NestedTreeRepository extends AbstractTreeRepository
 
 
         // Gets the array of $node results.
         // Gets the array of $node results.
         // It must be order by 'root' and 'left' field
         // It must be order by 'root' and 'left' field
-        $nodes = self::childrenQuery(
+        $nodes = $this->childrenQuery(
             $node,
             $node,
             $direct,
             $direct,
             isset($config['root']) ? array($config['root'], $config['left']) : $config['left'],
             isset($config['root']) ? array($config['root'], $config['left']) : $config['left'],