mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3845: Add logger to track information how much time hydration of entities was spent and how many entities was hydrated #4710
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jul 23, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user debesha:
Maybe it worth to make a logger like Doctrine\DBAL\Logging which will track an information how much time was spent on a hydration of entities and how many entities were hydrated.
Because of lazy loading there could be hydrated a much more objects than it needed and it hard to track.
If a logger will be created, later in Symfony, for example, in doctrine/DoctrineBundle, it could be injected in Doctrine\ORM\Configuration and collected information might be displayed in a web profiler panel.
I've made a symfony bundle which implements the functionality - https://github.com/debesha/DoctrineProfileExtraBundle
Here https://github.com/debesha/DoctrineProfileExtraBundle/wiki I tried to explain why I think it is necessary.
If it will be considered to be worth to implement, I can make a coding myself and push it into hobodave/doctrine2.git