We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b229d92 + ca8948f commit 1828faeCopy full SHA for 1828fae
doctrine/associations.rst
@@ -368,8 +368,7 @@ following method to the ``ProductRepository`` class::
368
// src/AppBundle/Repository/ProductRepository.php
369
public function findOneByIdJoinedToCategory($productId)
370
{
371
- $query = $this->getDoctrine()
372
- ->getManager()
+ $query = $this->getEntityManager()
373
->createQuery(
374
'SELECT p, c FROM AppBundle:Product p
375
JOIN p.category c
0 commit comments