Symfony/Doctrine: Select multiple tables
问题 Im pretty new to Symfony and Doctrine and I can't find a solution to my problem. I have a database table called transactional and one called customer . In the transactional table is a foreign key to the customer table. Now I want to get all the data from both tables. But the Customer fields are all set to null. Here is the foreign key in the transactional php object: transactional : /** * @var \AppBundle\Entity\Customer * * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Customer") * @ORM