mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user