$visitor->setLastAccess(new \DateTime()); | $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 | // setCookieVisitor |