chore: fix deprecations
This commit is contained in:
@@ -55,7 +55,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
$qb->expr()->like('upload.displayName', ':filename')
|
||||
))
|
||||
->setParameter('filename', '%'.$this->escapeLikeWildcards($search).'%')
|
||||
->orderBy('upload.originalFilename', 'ASC')
|
||||
->orderBy('upload.originalFilename', \SortDirection::Ascending)
|
||||
->getQuery()
|
||||
->getResult()
|
||||
;
|
||||
@@ -97,7 +97,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
$qb->expr()->eq('upload.status', ':status'),
|
||||
$qb->expr()->isNull('upload.downloadedAt'),
|
||||
))
|
||||
->orderBy('upload.createdAt', 'DESC')
|
||||
->orderBy('upload.createdAt', \SortDirection::Descending)
|
||||
->setParameter('type', $type)
|
||||
->setParameter('status', $status)
|
||||
->getQuery()
|
||||
@@ -126,7 +126,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
->innerJoin('assignment.destination', 'destination')
|
||||
->innerJoin('disposition.teamer', 'teamer')
|
||||
->innerJoin('teamer.user', 'user')
|
||||
->addOrderBy('FIELD(upload.status, :checked, :new)', 'DESC')
|
||||
->addOrderBy('FIELD(upload.status, :checked, :new)', \SortDirection::Descending)
|
||||
->setParameter('new', Upload::STATUS_NEW)
|
||||
->setParameter('checked', Upload::STATUS_CHECKED)
|
||||
;
|
||||
@@ -207,7 +207,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
$qb->expr()->eq('upload.type', ':type'),
|
||||
$qb->expr()->in('upload.status', ':status')
|
||||
))
|
||||
->orderBy('upload.createdAt', 'DESC')
|
||||
->orderBy('upload.createdAt', \SortDirection::Descending)
|
||||
->setParameter('type', $type)
|
||||
->setParameter('status', [Upload::STATUS_NEW, Upload::STATUS_PENDING])
|
||||
->getQuery()
|
||||
|
||||
Reference in New Issue
Block a user