This does not handle pagination. The DoctrinePagination of the ORM module works with DQL queries