From 630b818524aeb5e29e0baa54d32d8cee42c1cefa Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Sat, 11 Jan 2025 03:53:23 -0300 Subject: [PATCH] [Doctrine] Document database replicas --- reference/configuration/doctrine.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 5ee35e63288..2026ba597d2 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -52,6 +52,10 @@ The following block shows all possible configuration keys: path: '%kernel.project_dir%/var/data/data.sqlite' memory: true unix_socket: /tmp/mysql.sock + replicas: + read_only_replica: + url: mysql://db_user:db_password@127.0.0.1:3306/db_name_replica + keep_replica: true # the DBAL wrapperClass option wrapper_class: App\DBAL\MyConnectionWrapper charset: utf8mb4 @@ -87,12 +91,23 @@ The following block shows all possible configuration keys: path="%kernel.project_dir%/var/data/data.sqlite" memory="true" unix-socket="/tmp/mysql.sock" + keep-replica="true" wrapper-class="App\DBAL\MyConnectionWrapper" charset="utf8mb4" logging="%kernel.debug%" platform-service="App\DBAL\MyDatabasePlatformService" server-version="8.0.37"> + + bar string App\DBAL\MyCustomType