mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +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();
|
$date_ref = new DateTime();
|
||||||
$n = 0;
|
$n = 0;
|
||||||
|
|
||||||
|
$app['EM']->getEventManager()->removeEventSubscriber(new TimestampableListener());
|
||||||
foreach ($rs as $row) {
|
foreach ($rs as $row) {
|
||||||
$user = User_Adapter::getInstance($row['usr_id'], $app);
|
$user = User_Adapter::getInstance($row['usr_id'], $app);
|
||||||
|
|
||||||
@@ -152,6 +153,8 @@ class patch_320f implements patchInterface
|
|||||||
$app['EM']->flush();
|
$app['EM']->flush();
|
||||||
$app['EM']->clear();
|
$app['EM']->clear();
|
||||||
|
|
||||||
|
$app['EM']->getEventManager()->removeEventSubscriber(new TimestampableListener());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -152,6 +152,11 @@ class patch_3907 implements patchInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$fiStmt->closeCursor();
|
||||||
|
$feStmt->closeCursor();
|
||||||
|
$fpStmt->closeCursor();
|
||||||
|
$ftStmt->closeCursor();
|
||||||
|
|
||||||
$faStmt->execute();
|
$faStmt->execute();
|
||||||
$faRes = $faStmt->fetchAll(\PDO::FETCH_ASSOC);
|
$faRes = $faStmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
@@ -163,6 +168,7 @@ class patch_3907 implements patchInterface
|
|||||||
|
|
||||||
$em->persist($token);
|
$em->persist($token);
|
||||||
}
|
}
|
||||||
|
$faStmt->closeCursor();
|
||||||
|
|
||||||
$em->flush();
|
$em->flush();
|
||||||
$em->clear();
|
$em->clear();
|
||||||
|
Reference in New Issue
Block a user