Sfoglia il codice sorgente

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

develop
Guillaume Bourgeois 1 anno fa
parent
commit
7e51ba526d
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. +5
    -2
      Builder/User/VisitorBuilder.php

+ 5
- 2
Builder/User/VisitorBuilder.php Vedi 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…
Annulla
Salva