mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 01:14:34 +02:00
Fixed phpunit tests for postgres
This commit is contained in:
parent
07f1ce5822
commit
33a5e70b70
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue