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().
There is no statement like LIMIT for DQL currently, as far as I know.
You have to use Query::setMaxResults().