Limit amount of records retrieved when using Doctrine DQL in Symfony2 Limit amount of records retrieved when using Doctrine DQL in Symfony2 sql sql

Limit amount of records retrieved when using Doctrine DQL in Symfony2


There is no statement like LIMIT for DQL currently, as far as I know.

You have to use Query::setMaxResults().