Commit 2357feb2 by Damien Moulard

Merge branch '6496-impossible-de-creer-adherent-dans-cas-specifique' into 'develop'

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

See merge request cooperatic/kohinos-tav!110
parents 671d1b32 c116fe22
......@@ -533,7 +533,8 @@ class AdherentAdmin extends AbstractAdmin
$adherent->setAnonymousToken($uniqueCode);
$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