Make sure the results are always sorted the same

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-02-11 13:10:33 +01:00 committed by Julius Härtl
parent a8a5472401
commit c8c59e6006
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class Manager implements IManager {
) )
->where($query->expr()->iLike('c.name', $query->createNamedParameter($filter, IQueryBuilder::PARAM_STR))) ->where($query->expr()->iLike('c.name', $query->createNamedParameter($filter, IQueryBuilder::PARAM_STR)))
->andWhere($query->expr()->neq('a.access', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))) ->andWhere($query->expr()->neq('a.access', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT)))
->orderBy('c.id')
->setMaxResults($limit) ->setMaxResults($limit)
->setFirstResult($start); ->setFirstResult($start);
$result = $query->execute(); $result = $query->execute();