diff --git a/DependencyInjection/DoctrineExtension.php b/DependencyInjection/DoctrineExtension.php index b76138093..c468ff2b2 100644 --- a/DependencyInjection/DoctrineExtension.php +++ b/DependencyInjection/DoctrineExtension.php @@ -261,7 +261,6 @@ protected function getConnectionOptions($connection) if (! empty($options['slaves'])) { $nonRewrittenKeys = [ 'driver' => true, - 'driverOptions' => true, 'driverClass' => true, 'wrapperClass' => true, 'keepSlave' => true, diff --git a/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php b/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php index 703cdb84d..cbaf8ef5e 100644 --- a/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php +++ b/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php @@ -126,6 +126,7 @@ public function testDbalLoadSingleMasterSlaveConnection() 'dbname' => 'mysql_db', 'host' => 'localhost', 'unix_socket' => '/path/to/mysqld.sock', + 'driverOptions' => [], ], $param['master'] );