chore: fix deprecations
This commit is contained in:
1 parent
52926ec6cc
commit
4b20aad98e
18 files changed
+52
-52
No files matched your search
@@ -55,7 +55,7 @@ class UserRepository extends ServiceEntityRepository
|
||||
// andWhere after a chain of orWhere yields "(... OR ...) AND ...", so this
|
||||
// narrows the whole list rather than widening it by one more alternative
|
||||
->andWhere($qb->expr()->isNull('u.deletedAt'))
|
||||
->orderBy('u.lastName', 'ASC')
|
||||
->orderBy('u.lastName', \SortDirection::Ascending)
|
||||
->getQuery()
|
||||
->getResult()
|
||||
;
|
||||
@@ -83,8 +83,8 @@ class UserRepository extends ServiceEntityRepository
|
||||
->andWhere($roleMatches)
|
||||
->andWhere($qb->expr()->isNull('user.deletedAt'))
|
||||
->andWhere($qb->expr()->isNull('user.disabledAt'))
|
||||
->orderBy('user.lastName', 'ASC')
|
||||
->addOrderBy('user.firstName', 'ASC')
|
||||
->orderBy('user.lastName', \SortDirection::Ascending)
|
||||
->addOrderBy('user.firstName', \SortDirection::Ascending)
|
||||
->getQuery()
|
||||
->getResult()
|
||||
;
|
||||
@@ -132,8 +132,8 @@ class UserRepository extends ServiceEntityRepository
|
||||
))
|
||||
->andWhere('JSON_CONTAINS(user.roles, :role) = 1')
|
||||
->andWhere($qb->expr()->isNull('user.deletedAt'))
|
||||
->orderBy('user.lastName', 'ASC')
|
||||
->addOrderBy('user.firstName', 'ASC')
|
||||
->orderBy('user.lastName', \SortDirection::Ascending)
|
||||
->addOrderBy('user.firstName', \SortDirection::Ascending)
|
||||
->setParameter('search', '%'.$this->escapeLikeWildcards($search).'%')
|
||||
->setParameter('role', json_encode($role))
|
||||
->getQuery()
|
||||
|
||||
Reference in new issue
Block a user