Add doctrine to registry
This commit is contained in:
parent
2fc9a2a4da
commit
94cd33af0e
@ -98,6 +98,7 @@ $connectionParams = array(
|
||||
|
||||
try {
|
||||
$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
|
||||
Zend_Registry::set('doctrine', $conn);
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
echo "Connection Database impossible.\n";
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user