mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix merge request conflict for improve address
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Chill\MainBundle\Controller;
|
||||
|
||||
use Chill\MainBundle\CRUD\Controller\ApiController;
|
||||
use Chill\MainBundle\Pagination\PaginatorInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
@@ -20,8 +21,17 @@ class AddressReferenceAPIController extends ApiController
|
||||
|
||||
$qb->where('e.postcode = :postal_code')
|
||||
->setParameter('postal_code', $request->query->get('postal_code'));
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator, $_format)
|
||||
{
|
||||
$query->addOrderBy('e.street', 'ASC');
|
||||
$query->addOrderBy('e.streetNumber', 'ASC');
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user