Symfony2: does fetch=“EAGER” create a join?
问题 I have this mapped property inside my product entity: /** * @ORM\ManyToMany(targetEntity="Group", mappedBy="products", indexBy="id", fetch="EAGER") * */ protected $groups; I wonder, my understanding for fetch="EAGER" is that it should get the groups once the product is selected, this is what happens but it uses 2 queries whenever i do something like findBy() one query to get the product and another one to get the groups . Is there anyway to make findBy() or other helper methods get the