Set mongodb-odm-bundle default database

This commit is contained in:
BoShurik
2017-09-22 08:52:25 +03:00
parent 8ec8b7ecb9
commit 575ddaab0f
2 changed files with 3 additions and 1 deletions
@@ -5,6 +5,7 @@ doctrine_mongodb:
default:
server: '%env(MONGODB_URL)%'
options: {}
default_database: '%env(MONGODB_DB)%'
document_managers:
default:
auto_mapping: true
@@ -7,6 +7,7 @@
"src/": "%SRC_DIR%/"
},
"env": {
"MONGODB_URL": "mongodb://localhost:27017/symfony"
"MONGODB_URL": "mongodb://localhost:27017",
"MONGODB_DB": "symfony"
}
}