Upgrade doctrine/mongodb-odm from version 1.* from 2.*

  doctrine-orm, mongodb, php, symfony

I’m working on a legacy application built with Symfony-2. I’m trying to upgrade the used dependencies. I managed to upgrade Symfony to "symfony/symfony": "3.4.*".

When I tried to upgrade:

"doctrine/mongodb-odm": "1.*",
"doctrine/mongodb-odm-bundle": "3.*",

To:

"doctrine/mongodb-odm": "2.*",
"doctrine/mongodb-odm-bundle": "4.*",

I encountered the following error:

The service "doctrine.odm.mongodb.soft_delete.manager" has a dependency on     
a non-existent service "doctrine.odm.mongodb.document_manager".

Obviously, this is related to the abandoned package doctrine/mongodb-odm-softdelete or doctrine/mongodb-odm-softdelete-bundle.

Any ideas?

Source: Ask PHP

LEAVE A COMMENT