8000 minor #7306 Improved the image for Doctrine + Web Debug Toolbar (javi… · matthieu88160/symfony-docs@7a1c87e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a1c87e

Browse files
committed
minor symfony#7306 Improved the image for Doctrine + Web Debug Toolbar (javiereguiluz)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes symfony#7306). Discussion ---------- Improved the image for Doctrine + Web Debug Toolbar This fixes symfony#7301. The image file renaming is recommended because all images from the Symfony Docs are flattened in a single `_images/` directory. We should start "namespacing" image file names to avoid collisions. ### Before ![before_image](https://cloud.githubusercontent.com/assets/73419/21587282/a6cd3478-d0da-11e6-87a3-77fb4da51bcd.png) ### After ![after_image](https://cloud.githubusercontent.com/assets/73419/21587284/a9776ee6-d0da-11e6-8ffb-cc00078d10a4.png) Commits ------- a01e522 Improved the image for Doctrine + Web Debug Toolbar
2 parents 018b326 + a01e522 commit 7a1c87e

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed
49.9 KB
Loading
-80.2 KB
Binary file not shown.

doctrine.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -662,19 +662,17 @@ to easily fetch objects based on multiple conditions::
662662

663663
.. tip::
664664

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

668-
.. image:: /_images/doctrine/web_debug_toolbar.png
669+
.. image:: /_images/doctrine/doctrine_web_debug_toolbar.png
669670
:align: center
670-
:scale: 50
671-
:width: 350
671+
:class: with-browser
672672

673-
If you click the icon, the profiler will open, showing you the exact
674-
queries that were made.
675-
676-
The icon will turn yellow if there were more than 50 queries on the
677-
page. This could indicate that something is not correct.
673+
If the number of database queries is too high, the icon will turn yellow to
674+
indicate that something may not be correct. Click on the icon to open the
675+
Symfony Profiler and see the exact queries that were executed.
678676

679677
Updating an Object
680678
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
0