3 namespace Wallabag\ApiBundle\Repository
;
5 use Doctrine\ORM\EntityRepository
;
8 class AccessTokenRepository
extends EntityRepository
10 public function findAppsByUser($userId)
12 $qb = $this->createQueryBuilder('a')
13 ->innerJoin('a.client', 'c')
15 ->where('a.user =:userId')->setParameter('userId', $userId);
16 return $qb->getQuery()->getResult();