mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
PHRAS-1107 Fix order pagination in repository
This commit is contained in:
@@ -41,11 +41,13 @@ class OrderRepository extends EntityRepository
|
||||
public function listOrders($baseIds, $offsetStart = 0, $perPage = 20, $sort = "created_on")
|
||||
{
|
||||
$qb = $this
|
||||
->createQueryBuilder('o')
|
||||
->innerJoin('o.elements', 'e');
|
||||
->createQueryBuilder('o');
|
||||
|
||||
if (!empty($baseIds)) {
|
||||
$qb->where($qb->expr()->in('e.baseId', $baseIds));
|
||||
$qb
|
||||
->innerJoin('o.elements', 'e')
|
||||
->where($qb->expr()->in('e.baseId', $baseIds))
|
||||
->groupBy('o.id');
|
||||
}
|
||||
|
||||
if ($sort === 'user') {
|
||||
|
Reference in New Issue
Block a user