aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-09-10 19:14:30 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-09-12 23:43:20 +0200
commit7f07d737f85fcf511219f44d5369b352b9f0e067 (patch)
tree11d6a6d277a61be384ac02305b550c00049b86ec /lib
parent261766fe49438144e28d9a28a347db49c7c9c3aa (diff)
downloadnextcloud-server-7f07d737f85fcf511219f44d5369b352b9f0e067.tar.gz
nextcloud-server-7f07d737f85fcf511219f44d5369b352b9f0e067.zip
Create instance of Doctrine\Common\EventManager() in OC_DB.
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php
index f090f474243..bd67937cdd8 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -75,6 +75,7 @@ class OC_DB {
// do nothing if the connection already has been established
if (!self::$connection) {
$config = new \Doctrine\DBAL\Configuration();
+ $eventManager = new \Doctrine\Common\EventManager();
switch($type) {
case 'sqlite':
case 'sqlite3':
@@ -142,7 +143,7 @@ class OC_DB {
$connectionParams['wrapperClass'] = 'OC\DB\Connection';
$connectionParams['tablePrefix'] = OC_Config::getValue('dbtableprefix', 'oc_' );
try {
- self::$connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
+ self::$connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config, $eventManager);
if ($type === 'sqlite' || $type === 'sqlite3') {
// Sqlite doesn't handle query caching and schema changes
// TODO: find a better way to handle this