Fixed the entity manager configuration to support entity managers other ...

...than the default