From 6e970837a14792219b8c97823e09e249747f5b0c Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 4 Sep 2013 13:35:02 +0200 Subject: [PATCH] Added closes to patch, removed timestampable listener from 320f --- lib/classes/patch/320f.php | 3 +++ lib/classes/patch/3907.php | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/lib/classes/patch/320f.php b/lib/classes/patch/320f.php index b520ececf0..1a17b874a8 100644 --- a/lib/classes/patch/320f.php +++ b/lib/classes/patch/320f.php @@ -83,6 +83,7 @@ class patch_320f implements patchInterface $date_ref = new DateTime(); $n = 0; + $app['EM']->getEventManager()->removeEventSubscriber(new TimestampableListener()); foreach ($rs as $row) { $user = User_Adapter::getInstance($row['usr_id'], $app); @@ -152,6 +153,8 @@ class patch_320f implements patchInterface $app['EM']->flush(); $app['EM']->clear(); + $app['EM']->getEventManager()->removeEventSubscriber(new TimestampableListener()); + return true; } diff --git a/lib/classes/patch/3907.php b/lib/classes/patch/3907.php index 96701bf655..e1c972a01e 100644 --- a/lib/classes/patch/3907.php +++ b/lib/classes/patch/3907.php @@ -152,6 +152,11 @@ class patch_3907 implements patchInterface } } + $fiStmt->closeCursor(); + $feStmt->closeCursor(); + $fpStmt->closeCursor(); + $ftStmt->closeCursor(); + $faStmt->execute(); $faRes = $faStmt->fetchAll(\PDO::FETCH_ASSOC); @@ -163,6 +168,7 @@ class patch_3907 implements patchInterface $em->persist($token); } + $faStmt->closeCursor(); $em->flush(); $em->clear();