mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Fix unit tests
This commit is contained in:
@@ -1463,10 +1463,15 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
||||
|
||||
if (!$session->hasModuleId($app_id)) {
|
||||
$module = new \Entities\SessionModule();
|
||||
|
||||
$module->setModuleId($app_id);
|
||||
$module->setSession($session);
|
||||
$session->addSessionModule($module);
|
||||
|
||||
$app['EM']->persist($module);
|
||||
$app['EM']->persist($session);
|
||||
|
||||
$app['EM']->flush();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user