mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 11:03:17 +00:00
Added closes to patch, removed timestampable listener from 320f
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user