Add doctrine to registry

This commit is contained in:
Michael RICOIS 2016-11-02 11:42:13 +01:00
parent 2fc9a2a4da
commit 94cd33af0e

View File

@ -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;