accountManager->find($accountId)]); } $accountQuery = $this->accountManager->getRepository()->createQueryBuilder('account') ->where('account.active = true') ->andWhere('account.freeze != true') ->addOrderBy('account.id') ->getQuery() ->setFirstResult(0) ->setMaxResults(100) ; return (new Paginator($accountQuery))->getIterator(); } }