We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61bc972 commit b2a5cd8Copy full SHA for b2a5cd8
1 file changed
src/Illuminate/Database/Connection.php
@@ -840,9 +840,14 @@ public function getDoctrineConnection()
840
{
841
$driver = $this->getDoctrineDriver();
842
843
- $data = array('pdo' => $this->pdo, 'dbname' => $this->getConfig('database'));
844
-
845
- return new DoctrineConnection($data, $driver);
+ return new DoctrineConnection([
+ 'host' => $this->getConfig('host'),
+ 'port' => $this->getConfig('port'),
846
+ 'user' => $this->getConfig('username'),
847
+ 'password' => $this->getConfig('password'),
848
+ 'dbname' => $this->getDatabaseName(),
849
+ 'charset' => $this->getConfig('charset'),
850
+ ], $driver);
851
}
852
853
/**
0 commit comments