Fixed phpunit tests for postgres

This commit is contained in:
Jan Böhmer 2024-06-13 22:19:17 +02:00
parent 07f1ce5822
commit 33a5e70b70
2 changed files with 7 additions and 1 deletions

View file

@ -79,7 +79,7 @@ class DBElementRepository extends EntityRepository
/**
* Find all elements that match a list of IDs.
*
* They are ordered by IDs in an ascending order.
* @return AbstractDBElement[]
* @phpstan-return list<TEntityClass>
*/
@ -89,6 +89,7 @@ class DBElementRepository extends EntityRepository
$q = $qb->select('element')
->where('element.id IN (?1)')
->setParameter(1, $ids)
->orderBy('element.id', 'ASC')
->getQuery();
return $q->getResult();