Details
Description
The hydration code should be moved out of the persisters and re-using the Hydrators.
Reasons:
- No duplication of hydration code necessary anymore.
- More complex hydration (eager loads) possible inside persister
Implementation:
- Either use a SimpleObjectHydrator or reuse the ObjectHydrator (benchmark)
Check for performance first.
A first milestone of this is done: https://github.com/doctrine/doctrine2/commit/851f44a066ffbe7849c1402d5e192be9bbd4383e