Nach der Installation von symfony2 und mongodb von composer.json (Die Installation wurde erfolgreich abgeschlossen). Aber, wenn ich die Anwendung ausführen, bekomme ich die folgende Fehlermeldung:Symfony2/3: Dokumentmanager-Problem mit mongodb
InvalidArgumentException: Unable to replace alias "doctrine_mongodb.odm.document_manager" with "doctrine.odm.mongodb.document_manager".
Das ist mein composer.json:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"doctrine/mongodb-odm-bundle": "3.0.*"
},
Hat jemand eine Idee?
Haben Sie registriert das Bündel hinzufügen? (http://symfony.com/doc/master/bundles/DoctrineMongoDBBundle/index.html#register-the-annotations-and-the-bundle) – cheesemacfly
Ja, ich habe das Bündel gut registriert. – jlcj
Vermissen Sie das Paket "doctrine/mongodb-odm"? – cheesemacfly