@@ -27,7 +27,10 @@ Configuration Reference
27
27
port : ~
28
28
user : root
29
29
password : ~
30
- charset : " UTF8"
30
+
31
+ # RDBMS specific; Refer to the manual of your RDBMS for more information
32
+ charset : ~
33
+
31
34
dbname_suffix : ~
32
35
33
36
# SQLite specific
@@ -132,8 +135,8 @@ Configuration Reference
132
135
default_table_options :
133
136
# Affects schema-tool. If absent, DBAL chooses defaults
134
137
# based on the platform. Examples here are for MySQL.
135
- # charset: utf8
136
- # collate: utf8_unicode_ci
138
+ # charset: utf8mb4
139
+ # collate: utf8mb4_unicode_ci
137
140
# engine: InnoDB
138
141
139
142
replicas :
@@ -443,7 +446,7 @@ Configuration Reference
443
446
port =" null"
444
447
user =" root"
445
448
password =" null"
446
- charset =" UTF8 "
449
+ charset =" null "
447
450
path =" "
448
451
memory =" "
449
452
unix-socket =" "
@@ -485,8 +488,8 @@ Configuration Reference
485
488
<doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
486
489
487
490
<!-- example -->
488
- <doctrine : default-table-option name =" charset" >utf8 </doctrine : default-table-option >
489
- <doctrine : default-table-option name =" collate" >utf8_unicode_ci </doctrine : default-table-option >
491
+ <doctrine : default-table-option name =" charset" >utf8mb4 </doctrine : default-table-option >
492
+ <doctrine : default-table-option name =" collate" >utf8mb4_unicode_ci </doctrine : default-table-option >
490
493
<doctrine : default-table-option name =" engine" >InnoDB</doctrine : default-table-option >
491
494
492
495
<!-- example -->
@@ -959,7 +962,7 @@ can configure. The following block shows all possible configuration keys:
959
962
sslkey : postgresql-key.pem # PostgreSQL specific (LIBPQ-CONNECT-SSLKEY)
960
963
sslcrl : postgresql.crl # PostgreSQL specific (LIBPQ-CONNECT-SSLCRL)
961
964
wrapper_class : MyDoctrineDbalConnectionWrapper
962
- charset : UTF8
965
+ charset : ~ # RDBMS-specific. Refer to the manual of your RDBMS for more information.
963
966
logging : " %kernel.debug%"
964
967
platform_service : MyOwnDatabasePlatformService
965
968
auto_commit : false
@@ -970,9 +973,10 @@ can configure. The following block shows all possible configuration keys:
970
973
custom : Acme\HelloBundle\MyCustomType
971
974
default_table_options :
972
975
# Affects schema-tool. If absent, DBAL chooses defaults
973
- # based on the platform.
974
- charset : utf8
975
- collate : utf8_unicode_ci
976
+ # based on the platform. These defaults might be
977
+ # sub-optimal for backward compatibility reasons.
978
+ charset : utf8mb4
979
+ collate : utf8mb4_unicode_ci
976
980
engine : InnoDB
977
981
978
982
.. code-block :: xml
@@ -1048,16 +1052,16 @@ can configure. The following block shows all possible configuration keys:
1048
1052
sslkey =" postgresql-key.pem"
1049
1053
sslcrl =" postgresql.crl"
1050
1054
wrapper-class =" MyDoctrineDbalConnectionWrapper"
1051
- charset =" UTF8 "
1055
+ charset =" "
1052
1056
logging =" %kernel.debug%"
1053
1057
platform-service =" MyOwnDatabasePlatformService"
1054
1058
auto-commit =" false"
1055
1059
schema-filter =" ^sf2_"
1056
1060
>
1057
1061
<doctrine : option key =" foo" >bar</doctrine : option >
1058
1062
<doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
1059
- <doctrine : default-table-option name =" charset" >utf8 </doctrine : default-table-option >
1060
- <doctrine : default-table-option name =" collate" >utf8_unicode_ci </doctrine : default-table-option >
1063
+ <doctrine : default-table-option name =" charset" >utf8mb4 </doctrine : default-table-option >
1064
+ <doctrine : default-table-option name =" collate" >utf8mb4_unicode_ci </doctrine : default-table-option >
1061
1065
<doctrine : default-table-option name =" engine" >InnoDB</doctrine : default-table-option >
1062
1066
<doctrine : type name =" custom" >Acme\HelloBundle\MyCustomType</doctrine : type >
1063
1067
</doctrine : dbal >
0 commit comments