Symfony2/3: document manager issue with mongodb Symfony2/3: document manager issue with mongodb symfony symfony

Symfony2/3: document manager issue with mongodb


You have to add doctrine_mongodb configuration to app/config/config.yml

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


Your composer.json should also contain this one following line to get the actual ODM library installed. This will solve your problem

"doctrine/mongodb-odm": "1.0.*@dev",