Skip to content

Commit 4293dc6

Browse files
Remove charset config for doctrine-bundle v2
1 parent 53faf5a commit 4293dc6

File tree

8 files changed

+28
-8
lines changed

8 files changed

+28
-8
lines changed

doctrine/doctrine-bundle/1.12/config/packages/doctrine.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ doctrine:
22
dbal:
33
url: '%env(resolve:DATABASE_URL)%'
44

5-
# IMPORTANT: You MUST configure your db driver and server version,
5+
# IMPORTANT: You MUST configure your server version,
66
# either here or in the DATABASE_URL env var (see .env file)
7-
#driver: 'mysql'
87
#server_version: '5.7'
98

10-
# Only needed for MySQL (ignored otherwise)
9+
# only needed for MySQL
1110
charset: utf8mb4
1211
default_table_options:
1312
collate: utf8mb4_unicode_ci

doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ doctrine:
22
dbal:
33
url: '%env(resolve:DATABASE_URL)%'
44

5-
# IMPORTANT: You MUST configure your db driver and server version,
5+
# IMPORTANT: You MUST configure your server version,
66
# either here or in the DATABASE_URL env var (see .env file)
7-
#driver: 'mysql'
87
#server_version: '5.7'
98

10-
# Only needed for MySQL (ignored otherwise)
9+
# only needed for MySQL
1110
charset: utf8mb4
1211
default_table_options:
1312
collate: utf8mb4_unicode_ci

doctrine/doctrine-bundle/1.6/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"env": {
1010
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
1111
"#2": "For an SQLite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
12-
"#3": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=UTF-8\"",
13-
"#4": "IMPORTANT: You MUST configure your db driver and server version, either here or in config/packages/doctrine.yaml",
12+
"#3": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"",
13+
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
1414
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
1515
}
1616
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
doctrine:
2+
dbal:
3+
url: '%env(resolve:DATABASE_URL)%'
4+
5+
# IMPORTANT: You MUST configure your server version,
6+
# either here or in the DATABASE_URL env var (see .env file)
7+
#server_version: '5.7'
8+
orm:
9+
auto_generate_proxy_classes: true
10+
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
11+
auto_mapping: true
12+
mappings:
13+
App:
14+
is_bundle: false
15+
type: annotation
16+
dir: '%kernel.project_dir%/src/Entity'
17+
prefix: 'App\Entity'
18+
alias: App
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../1.12/config/packages/prod/doctrine.yaml
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/2.0/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)