Added unix_socket doctrine.dbal.connection option, which is used by the doctrine2 PDOMySql driver.

This commit is contained in:
Greg Thornton 2010-05-21 04:35:59 -05:00 committed by Fabien Potencier
parent a9c047f846
commit 73db693591
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class DoctrineExtension extends LoaderExtension
if (isset($connection['options'])) {
$driverOptions['driverOptions'] = $connection['options'];
}
foreach (array('dbname', 'host', 'user', 'password', 'path', 'port') as $key) {
foreach (array('dbname', 'host', 'user', 'password', 'path', 'port', 'unix_socket') as $key) {
if (isset($connection[$key])) {
$driverOptions[$key] = $connection[$key];
}