Explorar el Código

Merge pull request #87 from EmmanuelVella/patch-3

Use addOrderBy instead of orderBy in ProxyQuery
Thomas hace 13 años
padre
commit
83db3a54ba
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);