From: Raphaƫl Gertz <git@rapsys.eu>
Date: Sun, 28 Jan 2024 05:56:55 +0000 (+0000)
Subject: Add doctrine dbal default charset and collate parameters
X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/755c5592f1142d2cd9c194e9b845742a85bcd374

Add doctrine dbal default charset and collate parameters
---

diff --git a/Resources/config/packages/rapsys_blog.yaml b/Resources/config/packages/rapsys_blog.yaml
index 5511844..660ca0f 100644
--- a/Resources/config/packages/rapsys_blog.yaml
+++ b/Resources/config/packages/rapsys_blog.yaml
@@ -160,6 +160,12 @@ rapsys_user:
 
 # Doctrine configuration
 doctrine:
+    # Dbal configuration
+    dbal:
+        charset: 'utf8mb4'
+        default_table_options:
+            charset: 'utf8mb4'
+            collate: 'utf8mb4_unicode_ci'
     # Orm configuration
     orm:
         # Replace repository factory