Преглед на файлове

[Tree] AbstractTreeRepository: childCount method should reset "orderBy" part, and not "orderby"

comfortablynumb преди 12 години
родител
ревизия
acf55c63a4
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      lib/Gedmo/Tree/Entity/Repository/AbstractTreeRepository.php

+ 2 - 2
lib/Gedmo/Tree/Entity/Repository/AbstractTreeRepository.php

@@ -107,8 +107,8 @@ abstract class AbstractTreeRepository extends EntityRepository implements Reposi
 
         // We need to check first if there's an ORDER BY DQL part, because resetDQLPart doesn't
         // check if its internal array has an "orderby" index
-        if (isset($dqlParts['orderby'])) {
-            $qb->resetDQLPart('orderby');
+        if (isset($dqlParts['orderBy'])) {
+            $qb->resetDQLPart('orderBy');
         }
 
         $aliases = $qb->getRootAliases();