Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SF4 mongodb not finding odm #696

Open
spin7ion opened this issue Jul 14, 2022 · 2 comments
Open

SF4 mongodb not finding odm #696

spin7ion opened this issue Jul 14, 2022 · 2 comments

Comments

@spin7ion
Copy link

I'm trying to update from SF3 to SF4 and i'm getting strange error:

The service "fos_oauth_server.client_manager.default" has a dependency on a non-existent service "doctrine.odm.mongodb.document_manager".

Here is my composer.json:
`"php": ">=7.0.0",
"symfony/symfony": "4.",
"symfony/process": "
",
"symfony/orm-pack": "",
"symfony/webpack-encore-bundle": "
",
"symfony/swiftmailer-bundle": "",
"symfony/monolog-bundle": "
",
"incenteev/composer-parameter-handler": "",
"knplabs/knp-paginator-bundle": "
",
"whiteoctober/breadcrumbs-bundle": "^1.2",
"friendsofsymfony/user-bundle": "",
"doctrine/mongodb-odm-bundle": "
",
"doctrine/mongodb-odm": "*",

    "stof/doctrine-extensions-bundle": "*",
    "devster/guzzle-wsse-plugin": "*",
    "guzzlehttp/guzzle": "*",

    "knplabs/knp-time-bundle": "*",
    "willdurand/js-translation-bundle": "*",
    "php-amqplib/rabbitmq-bundle": "*",

    "pear/file_marc": "*",
    "friendsofsymfony/elastica-bundle": "*",

    "imagine/imagine": "*",
    "yectep/phpspreadsheet-bundle": "^0.0.5",
    "friendsofsymfony/rest-bundle": "^3.1",
    "friendsofsymfony/oauth-server-bundle": "dev-master",
    "nelmio/api-doc-bundle": "^2.13",
    "buzzingpixel/twig-switch": "^1.0",
    "jjalvarezl/pdfjs-viewer-bundle": "^3.0",
    "menarasolutions/geographer": "^0.3.10",
    "menarasolutions/geographer-ru": "^0.2.2",
    "fluentdom/fluentdom": "^8.0",
    "jms/serializer-bundle": "^4.0"`
@spin7ion spin7ion changed the title SF4 mongodb not SF4 mongodb not finding odm Jul 14, 2022
@aanair08
Copy link

Any Solution?

@rupeshwankhede
Copy link

rupeshwankhede commented Mar 31, 2023

May be you can try this. Add this in your services.yaml file

doctrine.odm.mongodb.document_manager:
alias: doctrine_mongodb.odm.document_manager
public: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants