I\'m trying to get a single row returned from a native query with Doctrine. Here\'s my code:
$rsm = new ResultSetMapping; $rsm->addEntityResult(\'VNNCoreB
To fetch single row
$result = $this->getEntityManager()->getConnection()->fetchAssoc($sql)
To fetch all records
$result = $this->getEntityManager()->getConnection()->fetchAll($sql)
Here you can use sql native query, all will work without any issue.