When I dump an array in twig, it gives the following result:
array(1) {
[0]=>
object(TEST\Bundle\BlogBundle\Entity\Follow)#364 (3) {
["id":"TEST\Bundle\BlogBundle\Entity\Follow":private]=>
int(1)
["follower"]=>
int(2)
["followed"]=>
int(1)
}
}
int(1)
int(1)
How can I access the follower parameter inside my loop which is:
{% for fol in followers %}
<pre> {{ dump(fol) }} </pre>
{% endfor %}
Thank you for your help.