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