@@ -203,8 +203,9 @@ Migrations: Creating the Database Tables/Schema
203203-----------------------------------------------
204204
205205The ``Product `` class is fully-configured and ready to save to a ``product `` table.
206- Of course, your database doesn't actually have the ``product `` table yet. To add
207- it, you can leverage the `DoctrineMigrationsBundle `_, which is already installed:
206+ If you just defined this class, your database doesn't actually have the ``product ``
207+ table yet. To add it, you can leverage the `DoctrineMigrationsBundle `_, which is
208+ already installed:
208209
209210.. code-block :: terminal
210211
@@ -234,7 +235,7 @@ Migrations & Adding more Fields
234235-------------------------------
235236
236237But what if you need to add a new field property to ``Product ``, like a ``description ``?
237- It's easy to add the new property by hand . But, you can also use ``make:entity ``
238+ You can edit the class to add the new property. But, you can also use ``make:entity ``
238239again:
239240
240241.. code-block :: terminal
@@ -278,7 +279,7 @@ methods:
278279 }
279280
280281 The new property is mapped, but it doesn't exist yet in the ``product `` table. No
281- problem! Just generate a new migration:
282+ problem! Generate a new migration:
282283
283284.. code-block :: terminal
284285
@@ -291,7 +292,7 @@ This time, the SQL in the generated file will look like this:
291292 ALTER TABLE product ADD description LONGTEXT NOT NULL
292293
293294 The migration system is *smart *. It compares all of your entities with the current
294- state of the database and generates the SQL needed to synchronize them! Just like
295+ state of the database and generates the SQL needed to synchronize them! Like
295296before, execute your migrations:
296297
297298.. code-block :: terminal
@@ -524,7 +525,8 @@ There are many more options you can use. Read more about the `ParamConverter`_.
524525Updating an Object
525526------------------
526527
527- Once you've fetched an object from Doctrine, updating it is easy::
528+ Once you've fetched an object from Doctrine, you interact with it the same as
529+ with any PHP model::
528530
529531 /**
530532 * @Route("/product/edit/{id}")
@@ -548,7 +550,7 @@ Once you've fetched an object from Doctrine, updating it is easy::
548550 ]);
549551 }
550552
551- Updating an object involves just three steps:
553+ Using doctrine to edit an existing product consists of three steps:
552554
553555#. fetching the object from Doctrine;
554556#. modifying the object;
0 commit comments