diff --git a/en/tutorials/getting-started-xml-edition.rst b/en/tutorials/getting-started-xml-edition.rst index 80b3aa227..03cf5681a 100644 --- a/en/tutorials/getting-started-xml-edition.rst +++ b/en/tutorials/getting-started-xml-edition.rst @@ -975,7 +975,7 @@ can rewrite our code: createQuery($dql); + $query = $entityManager->createQuery($dql); $bugs = $query->getArrayResult(); foreach ($bugs AS $bug) { @@ -1116,7 +1116,7 @@ grouped by product: createQuery($dql)->getScalarResult(); + $productBugs = $entityManager->createQuery($dql)->getScalarResult(); foreach($productBugs as $productBug) { echo $productBug['name']." has " . $productBug['openBugs'] . " open bugs!\n";