Add recipe for DoctrineBundle 1.12 and newer

* Replaces deprecated underscore naming strategy with non-deprecated number-aware strategy
* Remove special production config
This commit is contained in:
Andreas Braun
2019-11-19 16:30:16 +01:00
parent f5f76c39b3
commit bf7c5fd70a
5 changed files with 30 additions and 0 deletions
@@ -0,0 +1,24 @@
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
# IMPORTANT: You MUST configure your db driver and server version,
# either here or in the DATABASE_URL env var (see .env file)
#driver: 'mysql'
#server_version: '5.7'
# Only needed for MySQL (ignored otherwise)
charset: utf8mb4
default_table_options:
collate: utf8mb4_unicode_ci
orm:
auto_generate_proxy_classes: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
@@ -0,0 +1,3 @@
doctrine:
orm:
auto_generate_proxy_classes: false
+1
View File
@@ -0,0 +1 @@
../1.6/manifest.json
+1
View File
@@ -0,0 +1 @@
../1.6/post-install.txt
+1
View File
@@ -0,0 +1 @@
../1.6/src