Agence-DnD / DnD-MagentoConnectorBundle

Connecteur Magento pour le PIM Akeneo
18 stars 13 forks source link

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

Open alecbedzir opened 9 years ago

alecbedzir commented 9 years ago

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 commented 7 years ago

app/config/config.yml

doctrine_mongodb: connections: default: server: mongodb://localhost:27017 options: {} default_database: test_database document_managers: default: auto_mapping: true