Add DoctrineMongoDBBundle recipe

This commit is contained in:
Jérôme Parmentier
2017-05-03 07:08:14 -07:00
committed by Fabien Potencier
parent 27f70e8f29
commit 2c5799ffd4
3 changed files with 29 additions and 0 deletions
@@ -0,0 +1,17 @@
doctrine_mongodb:
auto_generate_proxy_classes: '%kernel.debug%'
auto_generate_hydrator_classes: '%kernel.debug%'
connections:
default:
server: '%env(MONGODB_URL)%'
options: {}
document_managers:
default:
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Document'
prefix: App\Document\
alias: App
@@ -0,0 +1,12 @@
{
"bundles": {
"Doctrine\\Bundle\\MongoDBBundle\\DoctrineMongoDBBundle": ["all"]
},
"copy-from-recipe": {
"etc/": "%ETC_DIR%/",
"src/": "%SRC_DIR%/"
},
"env": {
"MONGODB_URL": "mongodb://localhost:27017/symfony"
}
}