Skip to content

Commit cc84d2a

Browse files
committed
minor #17251 [Doctrine] Proper line numbers on Doctrine Persisting example (githubfromgui)
This PR was merged into the 5.4 branch. Discussion ---------- [Doctrine] Proper line numbers on Doctrine Persisting example Fixing the lines references for the Doctrine Persisting Object example. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 212e979 Proper line numbers on Doctrine Persisting example
2 parents 5c40010 + 212e979 commit cc84d2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doctrine.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,21 +394,21 @@ Take a look at the previous example in more detail:
394394

395395
.. _doctrine-entity-manager:
396396

397-
* **line 14** The ``ManagerRegistry $doctrine`` argument tells Symfony to
397+
* **line 13** The ``ManagerRegistry $doctrine`` argument tells Symfony to
398398
:ref:`inject the Doctrine service <services-constructor-injection>` into the
399399
controller method.
400400

401-
* **line 16** The ``$doctrine->getManager()`` method gets Doctrine's
401+
* **line 15** The ``$doctrine->getManager()`` method gets Doctrine's
402402
*entity manager* object, which is the most important object in Doctrine. It's
403403
responsible for saving objects to, and fetching objects from, the database.
404404

405-
* **lines 18-21** In this section, you instantiate and work with the ``$product``
405+
* **lines 17-20** In this section, you instantiate and work with the ``$product``
406406
object like any other normal PHP object.
407407

408-
* **line 24** The ``persist($product)`` call tells Doctrine to "manage" the
408+
* **line 23** The ``persist($product)`` call tells Doctrine to "manage" the
409409
``$product`` object. This does **not** cause a query to be made to the database.
410410

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

0 commit comments

Comments
 (0)