mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
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:
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
../1.6/manifest.json
|
||||
@@ -0,0 +1 @@
|
||||
../1.6/post-install.txt
|
||||
+1
@@ -0,0 +1 @@
|
||||
../1.6/src
|
||||
Reference in New Issue
Block a user