Forráskód Böngészése

Use addOrderBy instead of orderBy in ProxyQuery

Emmanuel Vella 13 éve
szülő
commit
4d5b859fdc
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Datagrid/ProxyQuery.php

+ 1 - 1
Datagrid/ProxyQuery.php

@@ -53,7 +53,7 @@ class ProxyQuery implements ProxyQueryInterface
             if (strpos($sortBy, '.') === false) { // add the current alias
                 $sortBy = $queryBuilder->getRootAlias() . '.' . $sortBy;
             }
-            $queryBuilder->orderBy($sortBy, $this->getSortOrder());
+            $queryBuilder->addOrderBy($sortBy, $this->getSortOrder());
         }
 
         return $this->getFixedQueryBuilder($queryBuilder)->getQuery()->execute($params, $hydrationMode);