Browse Source

[Place du Local] [ERREUR 500] The EntityManager is closed. #713

develop
Guillaume Bourgeois 1 year ago
parent
commit
7e51ba526d
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      Builder/User/VisitorBuilder.php

+ 5
- 2
Builder/User/VisitorBuilder.php View File

@@ -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

Loading…
Cancel
Save