chore: fix deprecations

This commit is contained in:
fromme committed 2026-09-09 11:14:00 +02:00
1 parent 52926ec6cc
commit 4b20aad98e
18 files changed
+52 -52

No files matched your search

+2 -2
View File
@@ -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()