I've used the following in my Controller Action
$data = $this->getDoctrine()->getRepository('MyBundle:links')->findAll();
data now holds and array of objects of class "Links" which are as follows
Array
(
[0] => MyBundle\Entity\links Object
(
[id:MyBundle\Entity\links:private] => 2
[urls:MyCheckerBundle\Entity\links:private] => http://localhost/1.php
)
[1] => MyBundle\Entity\links Object
(
[id:MyBundle\Entity\links:private] => 1
[urls:MyCheckerBundle\Entity\links:private] => http://localhost/2.php
))
How do I process this array of objects if I want to access id and urls so that I can display on my page ?