phpro / zf-doctrine-hydration-module

Configurable Doctrine hydrators for ZF2
18 stars 33 forks source link

Unable to use EntityManagerInterface implementation #44

Closed javabudd closed 2 years ago

javabudd commented 5 years ago

The DoctrineHydratorFactory has a method called getObjectManagerType that throws an exception if the objectManager provided is not an instance of DocumentManager or EntityManager. If I have my own object manager that implements EntityManagerInterface this exception is hit.

I think this method should be updated to check against the interface, so that users may implement their own entity managers if desired