From 50274c466f6b09f9ca92939ede99ea0b638c69f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2EEng=2E=20Ren=C3=A9=20Schwarz?= Date: Sat, 21 Nov 2015 15:25:20 +0100 Subject: [PATCH] Fixed some wrong line numbers in doctrine.rst Some line numbers for the code example in section "Persisting Objects to the Database" were wrong. --- book/doctrine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 003b31798ea..e1f0768730d 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -534,10 +534,10 @@ Take a look at the previous example in more detail: responsible for handling the process of persisting and fetching objects to and from the database. -* **line 16** The ``persist()`` method tells Doctrine to "manage" the ``$product`` +* **line 17** The ``persist()`` method tells Doctrine to "manage" the ``$product`` object. This does not actually cause a query to be made to the database (yet). -* **line 17** When the ``flush()`` method is called, Doctrine looks through +* **line 18** When the ``flush()`` method is called, Doctrine looks through all of the objects that it's managing to see if they need to be persisted to the database. In this example, the ``$product`` object has not been persisted yet, so the entity manager executes an ``INSERT`` query and a