Skip to content

Commit 09e62a5

Browse files
committed
[Doctrine] Document database replicas
1 parent e134083 commit 09e62a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/configuration/doctrine.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ The following block shows all possible configuration keys:
5252
path: '%kernel.project_dir%/var/data/data.sqlite'
5353
memory: true
5454
unix_socket: /tmp/mysql.sock
55+
replicas:
56+
read_only_replica:
57+
url: mysql://db_user:[email protected]:3306/db_name_replica
58+
keep_replica: true
5559
# the DBAL wrapperClass option
5660
wrapper_class: App\DBAL\MyConnectionWrapper
5761
charset: utf8mb4

0 commit comments

Comments
 (0)