This commit is contained in:
Romain Neutron
2013-08-29 18:49:10 +02:00
parent 400a4d2505
commit f51fd3daeb
4 changed files with 7 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ class OrderRepository extends EntityRepository
if ($sort === 'user') { if ($sort === 'user') {
$qb->orderBy('o.userId', 'ASC'); $qb->orderBy('o.userId', 'ASC');
} else if ($sort === 'usage') { } elseif ($sort === 'usage') {
$qb->orderBy('o.orderUsage', 'ASC'); $qb->orderBy('o.orderUsage', 'ASC');
} else { } else {
$qb->orderBy('o.createdOn', 'ASC'); $qb->orderBy('o.createdOn', 'ASC');