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

Getting "You have requested a non-existent parameter "mongodb_server" upon install along with mongoDB support #24

Open
alecbedzir opened this issue May 7, 2015 · 1 comment

Comments

@alecbedzir
Copy link

Guys, I'm facing the problem with uncommenting in app/AppKernel.php

            // Uncomment the following line to use MongoDB implementation
            // new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),

when I have DnD-MagentoConnectorBundle installed.

My installation is a very default one:

    "require": {
        "akeneo/pim-community-dev": "~1.3.2",
        "doctrine/mongodb-odm": "v1.0.0-beta10@dev",
        "doctrine/mongodb-odm-bundle": "v3.0.0-BETA6@dev",
        "agencednd/magento-connector-bundle":"1.2.2"
    },

Everything works unless you have line

new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),

commented out (in app/AppKernel.php).

When all's installed ok and I uncomment the line above (with DoctrineMongoDBBundle) and issue cache clean command in terminal (php app/console cache:clear) I get:

  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
  You have requested a non-existent parameter "mongodb_server".

Could you please give a hint on what could cause the issue?

@julian0521
Copy link

#app/config/config.yml
doctrine_mongodb:
connections:
default:
server: mongodb://localhost:27017
options: {}
default_database: test_database
document_managers:
default:
auto_mapping: 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

2 participants