Skip to content

Commit 0d520c9

Browse files
mark2016javiereguiluz
authored andcommitted
Update doctrine.rst
Fix the line numbering of the description of the ProductController to correctly align with the described line (the second half of them were about 2 out).
1 parent 01c2ec9 commit 0d520c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,13 @@ Take a look at the previous example in more detail:
414414
*entity manager* object, which is the most important object in Doctrine. It's
415415
responsible for saving objects to, and fetching objects from, the database.
416416

417-
* **lines 20-23** In this section, you instantiate and work with the ``$product``
417+
* **lines 18-21** In this section, you instantiate and work with the ``$product``
418418
object like any other normal PHP object.
419419

420-
* **line 26** The ``persist($product)`` call tells Doctrine to "manage" the
420+
* **line 24** The ``persist($product)`` call tells Doctrine to "manage" the
421421
``$product`` object. This does **not** cause a query to be made to the database.
422422

423-
* **line 29** When the ``flush()`` method is called, Doctrine looks through
423+
* **line 27** When the ``flush()`` method is called, Doctrine looks through
424424
all of the objects that it's managing to see if they need to be persisted
425425
to the database. In this example, the ``$product`` object's data doesn't
426426
exist in the database, so the entity manager executes an ``INSERT`` query,

0 commit comments

Comments
 (0)