Well.. i have a simple Entity and tried to get all records from it:
$em = $this->getDoctrine()->getManager();
$news = $em->getRepository('AppBundle:Article')->findAll();
var_dump($news); exit;
But it returns me very large response, check image bellow:
When i tried with this piece of code it returns me correct records in array, but why findAll doesn't work correct, it works for others entities?
$news = $this->getDoctrine()
->getRepository('AppBundle:Article')
->createQueryBuilder('e')
->select('e')
->getQuery()
->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY);