Details
Description
I was wondering if it would be possible to create custom hydrators for Doctrine 2.0. If I have a look at the EntityManager#getHydrator() method it seems not. Or should I subclass the EntityManager and override the getHydrator() method?
Maybe we should just take the approach we did for registering types and reuse same idea in hydrators too.
Of course it'll require us to write an Interface so people can at least have an idea of what's needed and make the AbstractHydrator to implement it.
I'm +1 to include this support, since we already have it in earlier 1.X and people can surely uses it if they're not affordable with our nice hydrators.
Cheers,