From 03668b9bb9f224f6db985bc9980dc75fab2fa4d5 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 29 May 2025 11:21:15 +0200 Subject: logs connexions --- src/model/entities/Log.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/model/entities/Log.php (limited to 'src/model/entities/Log.php') diff --git a/src/model/entities/Log.php b/src/model/entities/Log.php new file mode 100644 index 0000000..7c2caa9 --- /dev/null +++ b/src/model/entities/Log.php @@ -0,0 +1,28 @@ + 'CURRENT_TIMESTAMP'])] + //#[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(){ + $this->date_time = new \DateTime(); + } +} -- cgit v1.2.3