Skip to content

Commit

Permalink
Merge pull request #1240 from doctrine/feature-1230
Browse files Browse the repository at this point in the history
Fix #1230 - Console commands do not respect driverOptions when master/slave configuration is used
  • Loading branch information
ostrolucky authored Oct 28, 2020
2 parents f67f94f + 4353686 commit 6b16203
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion DependencyInjection/DoctrineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ protected function getConnectionOptions($connection)
if (! empty($options['slaves'])) {
$nonRewrittenKeys = [
'driver' => true,
'driverOptions' => true,
'driverClass' => true,
'wrapperClass' => true,
'keepSlave' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function testDbalLoadSingleMasterSlaveConnection()
'dbname' => 'mysql_db',
'host' => 'localhost',
'unix_socket' => '/path/to/mysqld.sock',
'driverOptions' => [],
],
$param['master']
);
Expand Down

0 comments on commit 6b16203

Please sign in to comment.