I have two tables clients and contacts and contacts has client_id as foreign key
$client = $this->getDoctrine()->getRepository('MyBundle:Client')->findAll();
This gives the data from table clients but I need data from contacts as well which has the related client id
Note: I am using embed forms, CollectionType, ArrayCollection
how do I get all clients with respective contacts in one query in symfony 3