aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/Log.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/Log.php')
-rw-r--r--src/model/entities/Log.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/model/entities/Log.php b/src/model/entities/Log.php
index 39b4307..eeb76e4 100644
--- a/src/model/entities/Log.php
+++ b/src/model/entities/Log.php
@@ -16,15 +16,14 @@ class Log
16 #[ORM\Column(type: "integer")] 16 #[ORM\Column(type: "integer")]
17 private int $id_log; 17 private int $id_log;
18 18
19 #[ORM\Column(type: 'datetime', options: ['default' => 'CURRENT_TIMESTAMP'])] 19 #[ORM\Column(type: 'datetime', options: ['default' => 'CURRENT_TIMESTAMP'])] // CURRENT_TIMESTAMP "inutile", date générée par PHP
20 //#[ORM\Column(type: 'datetime', columnDefinition: "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")] 20 private \DateTime $date_time; // type datetime de doctrine <=> type \DateTime de PHP
21 private ?\DateTime $date_time ; // le type datetime de doctrine convertit en type \DateTime de PHP
22 21
23 #[ORM\Column(type: "boolean")] 22 #[ORM\Column(type: "boolean")]
24 private bool $success; 23 private bool $success;
25 24
26 public function __construct(bool $success){ 25 public function __construct(bool $success){
27 $this->date_time = new \DateTime(); 26 $this->date_time = new \DateTime;
28 $this->success = $success; 27 $this->success = $success;
29 } 28 }
30} 29}