diff options
| author | polo <ordipolo@gmx.fr> | 2025-09-26 12:04:02 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-09-26 12:04:02 +0200 |
| commit | e93cd6c352a8e4fbb4e1174bdb15484adbe4c0f7 (patch) | |
| tree | 7fd1591a25d3557f5869a688bad28db533d6b414 /src/model/entities/Log.php | |
| parent | f977313ff095a10478291334109d9aae40528a34 (diff) | |
| download | cms-e93cd6c352a8e4fbb4e1174bdb15484adbe4c0f7.tar.gz cms-e93cd6c352a8e4fbb4e1174bdb15484adbe4c0f7.tar.bz2 cms-e93cd6c352a8e4fbb4e1174bdb15484adbe4c0f7.zip | |
suppression table Presentation
Diffstat (limited to 'src/model/entities/Log.php')
| -rw-r--r-- | src/model/entities/Log.php | 7 |
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 | } |
