diff --git a/lib/Alchemy/Phrasea/Model/Repositories/ApiApplicationRepository.php b/lib/Alchemy/Phrasea/Model/Repositories/ApiApplicationRepository.php index 8848db0c30..8f50e1c4c1 100644 --- a/lib/Alchemy/Phrasea/Model/Repositories/ApiApplicationRepository.php +++ b/lib/Alchemy/Phrasea/Model/Repositories/ApiApplicationRepository.php @@ -3,7 +3,6 @@ namespace Alchemy\Phrasea\Model\Repositories; use Alchemy\Phrasea\Model\Entities\User; -use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\Query\Expr; @@ -46,7 +45,7 @@ class ApiApplicationRepository extends EntityRepository { $qb = $this->createQueryBuilder('app'); $qb->innerJoin('app.accounts', 'acc', Expr\Join::WITH, $qb->expr()->eq('acc.user', ':user')); - $qb->andWhere($qb->expr()->eq('acc.revoked', $qb->expr()->literal(false))); + $qb->where($qb->expr()->eq('acc.revoked', $qb->expr()->literal(false))); $qb->setParameter(':user', $user); return $qb->getQuery()->getResult();