From 94cd33af0ef8b0aa781b38ba46a513c59d279992 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 2 Nov 2016 11:42:13 +0100 Subject: [PATCH] Add doctrine to registry --- bin/dataScoring.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/dataScoring.php b/bin/dataScoring.php index 49a435ae..431b8215 100644 --- a/bin/dataScoring.php +++ b/bin/dataScoring.php @@ -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;