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
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