phpro / zf-doctrine-hydration-module

Configurable Doctrine hydrators for ZF2
18 stars 33 forks source link

entity_class setting should not be required #23

Closed Bilge closed 8 years ago

Bilge commented 8 years ago

A hydrator should be able to hydrate any document passed. The entity_class setting implies having to specify a different hydrator for every entity in the system that one may wish to hydrate, which is impractical and cumbersome to implement for large systems.

veewee commented 8 years ago

The idea is to create a configurable custom hydrator per entity. If you want a global hydrator, you should be using the default DoctrineObject hydrator.