Skip to content

Commit

Permalink
minor #5897 Fixed some wrong line number references in doctrine.rst (…
Browse files Browse the repository at this point in the history
…DigNative)

This PR was merged into the 2.3 branch.

Discussion
----------

Fixed some wrong line number references in doctrine.rst

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | none

Some line numbers for the code example in section "Persisting Objects to the Database" were wrong.

Commits
-------

50274c4 Fixed some wrong line numbers in doctrine.rst
  • Loading branch information
xabbuh committed Nov 22, 2015
2 parents e6d4c93 + 50274c4 commit e9c267e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9c267e

Please sign in to comment.