Skip to content

Commit b165dcd

Browse files
committed
feature symfony#10 Add DoctrineMongoDBBundle recipe (Lctrs)
This PR was squashed before being merged into the master branch (closes symfony#10). Discussion ---------- Add DoctrineMongoDBBundle recipe Commits ------- 2c5799f Add DoctrineMongoDBBundle recipe
2 parents 27f70e8 + 2c5799f commit b165dcd

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
doctrine_mongodb:
2+
auto_generate_proxy_classes: '%kernel.debug%'
3+
auto_generate_hydrator_classes: '%kernel.debug%'
4+
connections:
5+
default:
6+
server: '%env(MONGODB_URL)%'
7+
options: {}
8+
document_managers:
9+
default:
10+
auto_mapping: true
11+
mappings:
12+
App:
13+
is_bundle: false
14+
type: annotation
15+
dir: '%kernel.project_dir%/src/Document'
16+
prefix: App\Document\
17+
alias: App
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"bundles": {
3+
"Doctrine\\Bundle\\MongoDBBundle\\DoctrineMongoDBBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"etc/": "%ETC_DIR%/",
7+
"src/": "%SRC_DIR%/"
8+
},
9+
"env": {
10+
"MONGODB_URL": "mongodb://localhost:27017/symfony"
11+
}
12+
}

doctrine/mongodb-odm-bundle/3.3/src/Document/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)