Explorar el Código

Use addOrderBy instead of orderBy in ProxyQuery

Emmanuel Vella hace 13 años
padre
commit
4d5b859fdc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);