@@ -45,8 +45,11 @@ class VisitorBuilder | |||
$visitor->setLastAccess(new \DateTime()); | |||
$this->entityManager->update($visitor); | |||
$this->entityManager->flush(); | |||
// Erreur : The EntityManager is closed. #713 | |||
if($this->entityManager->isOpen()) { | |||
$this->entityManager->update($visitor); | |||
$this->entityManager->flush(); | |||
} | |||
} | |||
// setCookieVisitor |