[DoctrineQueryBuilder] Fix interface compatibility