I have the following query:
$latestcontent = $em->createQuery(\' SELECT c.title, c.content, c.lastedit, a.firstname, a.surname
There is no statement like LIMIT for DQL currently, as far as I know.
You have to use Query::setMaxResults().