chore: fix deprecations
This commit is contained in:
1 parent
52926ec6cc
commit
4b20aad98e
18 files changed
+52
-52
No files matched your search
@@ -22,8 +22,8 @@ class NewsRepository extends ServiceEntityRepository
|
||||
|
||||
return $qb
|
||||
->where($qb->expr()->neq('news.status', ':status'))
|
||||
->orderBy('news.status', 'DESC')
|
||||
->addOrderBy('news.createdAt', 'DESC')
|
||||
->orderBy('news.status', \SortDirection::Descending)
|
||||
->addOrderBy('news.createdAt', \SortDirection::Descending)
|
||||
->setParameter('status', News::STATUS_DEACTIVATED)
|
||||
->setMaxResults(1)
|
||||
->getQuery()
|
||||
|
||||
Reference in new issue
Block a user