Update repository to new interface of doctrineQueryBuilder