I was wondering if it is possible to modify $this->getDoctrine()->getRepository('AppBundle:Foo')->findAll()
, so that I only get the IDs of the related entities. Because Foo is related to 'one User' and 'multiple Groups', I always get the 'whole User object' and 'ALL Group objects' in the result, which makes the result very unclear. So, is it possible to only print the IDs of the related objects?
I hope someone can help me. Thanks!