Add manifest.json for graphify-out documentation with metadata for various files
This commit is contained in:
@@ -104,9 +104,12 @@ class DoctorServiceController extends BaseController
|
||||
$search = trim((string) $request->query->get('search', ''));
|
||||
$specialtyId = $request->query->get('specialty_id');
|
||||
|
||||
$qb = $this->repo->createQueryBuilder('ds')
|
||||
->orderBy('ds.weight', 'ASC')
|
||||
->addOrderBy('ds.name', 'ASC');
|
||||
$qb = $this->repo->createQueryBuilder('ds');
|
||||
if ($request->query->get('sort') === 'id') {
|
||||
$qb->orderBy('ds.id', strtoupper((string) $request->query->get('order')) === 'DESC' ? 'DESC' : 'ASC');
|
||||
} else {
|
||||
$qb->orderBy('ds.weight', 'ASC')->addOrderBy('ds.name', 'ASC');
|
||||
}
|
||||
|
||||
if ($search !== '') {
|
||||
$qb->andWhere('ds.name LIKE :s')->setParameter('s', '%' . $search . '%');
|
||||
|
||||
Reference in New Issue
Block a user