From fa5a9a434f02f16166d1098f8a60f067830720eb Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 29 May 2025 12:43:52 +0200 Subject: logs connections failed --- src/model/entities/Log.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/model/entities/Log.php') diff --git a/src/model/entities/Log.php b/src/model/entities/Log.php index 7c2caa9..06a907e 100644 --- a/src/model/entities/Log.php +++ b/src/model/entities/Log.php @@ -22,7 +22,11 @@ class Log //#[ORM\Column(type: 'datetime', columnDefinition: "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")] private ?\DateTime $date_time ; // le type datetime de doctrine convertit en type \DateTime de PHP - public function __construct(){ + #[ORM\Column(type: "boolean")] + private bool $success; + + public function __construct(bool $success){ $this->date_time = new \DateTime(); + $this->success = $success; } } -- cgit v1.2.3