瀏覽代碼

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

develop
Guillaume Bourgeois 2 年之前
父節點
當前提交
7e51ba526d
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. +5
    -2
      Builder/User/VisitorBuilder.php

+ 5
- 2
Builder/User/VisitorBuilder.php 查看文件

@@ -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…
取消
儲存