Fix when using multiple entity managers.

As per doctrine 2.4 default entity manager is referenced by doctrine.orm.entity_manager.