Skip to content

Commit 1828fae

Browse files
committed
minor #8336 Update associations.rst (atailouloute)
This PR was merged into the 3.3 branch. Discussion ---------- Update associations.rst Commits ------- ca8948f Update associations.rst
2 parents b229d92 + ca8948f commit 1828fae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doctrine/associations.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,7 @@ following method to the ``ProductRepository`` class::
368368
// src/AppBundle/Repository/ProductRepository.php
369369
public function findOneByIdJoinedToCategory($productId)
370370
{
371-
$query = $this->getDoctrine()
372-
->getManager()
371+
$query = $this->getEntityManager()
373372
->createQuery(
374373
'SELECT p, c FROM AppBundle:Product p
375374
JOIN p.category c

0 commit comments

Comments
 (0)