Skip to content

Commit

Permalink
Improved the image for Doctrine + Web Debug Toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored and xabbuh committed Mar 3, 2017
1 parent 018b326 commit a01e522
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Binary file added _images/doctrine/doctrine_web_debug_toolbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed _images/doctrine/web_debug_toolbar.png
Binary file not shown.
18 changes: 8 additions & 10 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -662,19 +662,17 @@ to easily fetch objects based on multiple conditions::

.. tip::

When you render any page, you can see how many queries were made in the
bottom right corner of the web debug toolbar.
When rendering a page requires to make some database calls, the web debug
toolbar at the bottom of the page displays the number of queries and the
time it took to execute them:

.. image:: /_images/doctrine/web_debug_toolbar.png
.. image:: /_images/doctrine/doctrine_web_debug_toolbar.png
:align: center
:scale: 50
:width: 350
:class: with-browser

If you click the icon, the profiler will open, showing you the exact
queries that were made.

The icon will turn yellow if there were more than 50 queries on the
page. This could indicate that something is not correct.
If the number of database queries is too high, the icon will turn yellow to
indicate that something may not be correct. Click on the icon to open the
Symfony Profiler and see the exact queries that were executed.

Updating an Object
~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit a01e522

Please sign in to comment.