Browse Source

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

develop
Guillaume Bourgeois 2 years 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



$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

Loading…
Cancel
Save