• Stars
    star
    119
  • Rank 296,902 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bundle to get information about doctrine hydration performance

DoctrineProfileExtraBundle

Bundle to get information about doctrine hydration performance

Purpose

Adds a section to web profile which lists all doctrine hydrations performed during generation of response.

Installation

Add this in your composer.json

"require-dev": {
    [...]
    "debesha/doctrine-hydration-profiler-bundle" : "~1.0@dev",
},

Then run php composer.phar update

Next step is to register the bundle in AppKernel (app/AppKernel.php)

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    [...]
    $bundles[] = new Debesha\DoctrineProfileExtraBundle\DebeshaDoctrineProfileExtraBundle();
}

Attention! The bundle MUST be included AFTER DoctrineBundle.

That's it.

Screenshots

Your profile gets a new section where you may get an information about how fast was hydrations made and how many entities was hydrated.

Screenshot

Screenshot