please call this method setObjectManager to stress that we talk about the generic doctrine common objectmanager.