Fix orm entity manager configuration in Commands