File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -419,17 +419,17 @@ of the bundle:
419
419
420
420
Let's walk through this example:
421
421
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 ``
423
423
object like any other, normal PHP object;
424
424
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
426
426
responsible for handling the process of persisting and fetching objects
427
427
to and from the database;
428
428
429
- * **line 14 ** The ``persist() `` method tells Doctrine to "manage" the ``$product ``
429
+ * **line 15 ** The ``persist() `` method tells Doctrine to "manage" the ``$product ``
430
430
object. This does not actually cause a query to be made to the database (yet).
431
431
432
- * **line 15 ** When the ``flush() `` method is called, Doctrine looks through
432
+ * **line 16 ** When the ``flush() `` method is called, Doctrine looks through
433
433
all of the objects that it's managing to see if they need to be persisted
434
434
to the database. In this example, the ``$product `` object has not been
435
435
persisted yet, so the entity manager executes an ``INSERT `` query and a
You can’t perform that action at this time.
0 commit comments