8000 Fixed some wrong line numbers in doctrine.rst · symfony/symfony-docs@50274c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50274c4

Browse files
committed
Fixed some wrong line numbers in doctrine.rst
Some line numbers for the code example in section "Persisting Objects to the Database" were wrong.
1 parent e6d4c93 commit 50274c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,10 @@ Take a look at the previous example in more detail:
534534
responsible for handling the process of persisting and fetching objects
535535
to and from the database.
536536

537-
* **line 16** The ``persist()`` method tells Doctrine to "manage" the ``$product``
537+
* **line 17** The ``persist()`` method tells Doctrine to "manage" the ``$product``
538538
object. This does not actually cause a query to be made to the database (yet).
539539

540-
* **line 17** When the ``flush()`` method is called, Doctrine looks through
540+
* **line 18** When the ``flush()`` method is called, Doctrine looks through
541541
all of the objects that it's managing to see if they need to be persisted
542542
to the database. In this example, the ``$product`` object has not been
543543
persisted yet, so the entity manager executes an ``INSERT`` query and a

0 commit comments

Comments
 (0)
0