feat: sort documents by status 'new' on initial render
This commit is contained in:
1 parent
0f76e5c439
commit
5ac77e9e9c
6 files changed
+8
-8
No files matched your search
@@ -89,6 +89,9 @@ class UploadRepository extends ServiceEntityRepository
|
||||
->innerJoin('assignment.jobProfile', 'job_profile')
|
||||
->innerJoin('assignment.destination', 'destination')
|
||||
->innerJoin('disposition.teamer', 'teamer')
|
||||
->addOrderBy('FIELD(upload.status, :new, :checked)', 'ASC')
|
||||
->setParameter('new', Upload::STATUS_NEW)
|
||||
->setParameter('checked', Upload::STATUS_CHECKED)
|
||||
->getQuery()
|
||||
;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user