The query
$apartats = $em->getRepository('MyCompanyFrontendBundle:User')->findAll();
returns me an array with the same value in all values.
The numer of objects of returned array are good, but all values are equal than the first row of the table.
Example:
id:1, name:"Peter"
id:2, name="Sofia"
id:3, name="David"
Returns me:
id:1, name:"Peter"
id:1, name:"Peter"
id:1, name:"Peter"
Why is this?