Skip to content

Commit dfe4ada

Browse files
ducinweaverryan
authored andcommitted
fixed wrong lines number in book/doctrine/persisting objects to the database
1 parent b41c794 commit dfe4ada

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/doctrine.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,17 @@ of the bundle:
419419

420420
Let's walk through this example:
421421

422-
* **lines 8-11** In this section, you instantiate and work with the ``$product``
422+
* **lines 9-12** In this section, you instantiate and work with the ``$product``
423423
object like any other, normal PHP object;
424424

425-
* **line 13** This line fetches Doctrine's *entity manager* object, which is
425+
* **line 14** This line fetches Doctrine's *entity manager* object, which is
426426
responsible for handling the process of persisting and fetching objects
427427
to and from the database;
428428

429-
* **line 14** The ``persist()`` method tells Doctrine to "manage" the ``$product``
429+
* **line 15** The ``persist()`` method tells Doctrine to "manage" the ``$product``
430430
object. This does not actually cause a query to be made to the database (yet).
431431

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

0 commit comments

Comments
 (0)