Skip to content

Commit

Permalink
bug #4342 Reworded a misleading Doctrine explanation (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Reworded a misleading Doctrine explanation

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

Commits
-------

ef86b52 Fixed typo
fef57d5 Reworded a misleading Doctrine explanation
  • Loading branch information
weaverryan committed Nov 5, 2014
2 parents cef629c + ef86b52 commit 2ab2e1f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions book/doctrine.rst
Expand Up @@ -544,13 +544,12 @@ Take a look at the previous example in more detail:


.. note:: .. note::


In fact, since Doctrine is aware of all your managed entities, when you In fact, since Doctrine is aware of all your managed entities, when you call
call the ``flush()`` method, it calculates an overall changeset and executes the ``flush()`` method, it calculates an overall changeset and executes
the most efficient query/queries possible. For example, if you persist a the queries in the correct order. It utilizes cached prepared statement to
total of 100 ``Product`` objects and then subsequently call ``flush()``, slightly improve the performance. For example, if you persist a total of 100
Doctrine will create a *single* prepared statement and re-use it for each ``Product`` objects and then subsequently call ``flush()``, Doctrine will
insert. This pattern is called *Unit of Work*, and it's used because it's execute 100 ``INSERT`` queries using a single prepared statement object.
fast and efficient.


When creating or updating objects, the workflow is always the same. In the When creating or updating objects, the workflow is always the same. In the
next section, you'll see how Doctrine is smart enough to automatically issue next section, you'll see how Doctrine is smart enough to automatically issue
Expand Down

0 comments on commit 2ab2e1f

Please sign in to comment.