Commit c116fe22 by Yvon

fix early flush causing database insert while object if not ready yet

parent 671d1b32
...@@ -533,7 +533,8 @@ class AdherentAdmin extends AbstractAdmin ...@@ -533,7 +533,8 @@ class AdherentAdmin extends AbstractAdmin
$adherent->setAnonymousToken($uniqueCode); $adherent->setAnonymousToken($uniqueCode);
$em->persist($adherent); $em->persist($adherent);
$em->flush(); //Flushing here in case of new adherent creation will cause an immediate insert of a user with password in db, which is not permitted.
//Flushing here is not required as it is done later.
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment