mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #12059] [RFC] add HydrationFactory as extension point for tracking hydrations #13446
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?
Original Pull Request: https://github.com/doctrine/orm/pull/12059
State: closed
Merged: No
(Continuation of #9545)
This is a proposed extension point to help solve https://github.com/doctrine/DoctrineBundle/issues/109. I'm thinking a
HydratorInterfacethatAbstractHydratorimplements should be added but wanted to get some feedback/input before going further.The doctrine bundle could use this to add hydration times to the timeline:

The doctrine bundle could add something similar to https://github.com/debesha/DoctrineProfileExtraBundle#screenshots to the profiler panel.
You can see an example of how this could be used in DoctrineBundle here: https://github.com/kbond/symfony-reproducer/tree/hydration-profiler-poc (specifically
9a4e91b783).I don't think this causes any performance problems for hydration (when using the
DefaultHydratorFactory).