'[Syntax Error] line 0, col 71: Error: Expected end of string, got 'LIMIT''
Вот мой код:
public function getLatestChapters()
{
return $this->_em->createQuery('SELECT c, m FROM models\Chapter c JOIN c.Manga m ORDER BY c.CreateDate LIMIT 10')->getResult();
}
В чем может быть проблема? Как я могу использовать LIMIT в Doctrine?
Я использую Doctrine 2