Change the API call to warranties to sort by date_create #195

This commit is contained in:
Korina Cordero 2019-03-22 05:16:59 +00:00
parent c37323924a
commit 3e79c3960c

View file

@ -97,7 +97,7 @@ class WarrantyController extends APIController
$query = $qb->select('w')
->from('App\\Entity\\Warranty', 'w')
->orderBy('w.serial', $order)
->orderBy('w.date_create', $order)
->setFirstResult($start)
->setMaxResults($max)
->getQuery();