Allow all EntityManagerInterface implementations

This is necessary if Doctrine\ORM\Decorator\EntityManagerDecorator is used.
Merge pull request #1041 from c960657/entity-manager-interface

Allow all EntityManagerInterface implementations