Skip to content

Commit bf7c5fd

Browse files
committed
Add recipe for DoctrineBundle 1.12 and newer
* Replaces deprecated underscore naming strategy with non-deprecated number-aware strategy * Remove special production config
1 parent f5f76c3 commit bf7c5fd

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
doctrine:
2+
dbal:
3+
url: '%env(resolve:DATABASE_URL)%'
4+
5+
# IMPORTANT: You MUST configure your db driver and server version,
6+
# either here or in the DATABASE_URL env var (see .env file)
7+
#driver: 'mysql'
8+
#server_version: '5.7'
9+
10+
# Only needed for MySQL (ignored otherwise)
11+
charset: utf8mb4
12+
default_table_options:
13+
collate: utf8mb4_unicode_ci
14+
orm:
15+
auto_generate_proxy_classes: true
16+
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
17+
auto_mapping: true
18+
mappings:
19+
App:
20+
is_bundle: false
21+
type: annotation
22+
dir: '%kernel.project_dir%/src/Entity'
23+
prefix: 'App\Entity'
24+
alias: App
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
doctrine:
2+
orm:
3+
auto_generate_proxy_classes: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../1.6/manifest.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../1.6/post-install.txt

doctrine/doctrine-bundle/1.12/src

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../1.6/src

0 commit comments

Comments
 (0)