From cd009c7f47bf398b871baa1b9c1675865acf0692 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 2 Jul 2015 11:23:59 +0200 Subject: [PATCH 1/2] Fixed typo | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | --- book/doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 63c15079822..70376235304 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1094,7 +1094,7 @@ table, and ``product.category_id`` column, and new foreign key: .. note:: - This task should only be really used during development. For a more robust + This command should only be used during development. For a more robust method of systematically updating your production database, read about `migrations`_. From 526ead00fd2cfaa63edc220cf6d1c3b62a073b61 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 2 Jul 2015 11:35:51 +0200 Subject: [PATCH 2/2] Another typo --- book/doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 70376235304..ab52e4a7017 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1185,7 +1185,7 @@ You can also query in the other direction:: // ... } -In this case, the same things occurs: you first query out for a single ``Category`` +In this case, the same things occur: you first query out for a single ``Category`` object, and then Doctrine makes a second query to retrieve the related ``Product`` objects, but only once/if you ask for them (i.e. when you call ``->getProducts()``). The ``$products`` variable is an array of all ``Product`` objects that relate