Skip to content

Commit ca8948f

Browse files
authored
Update associations.rst
1 parent f72237d commit ca8948f

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)