From 310689eae521bd77f71b6641fc3ea76e5cdf2457 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 20 Mar 2021 13:44:37 +0100 Subject: [PATCH] remove core from app --- src/Doctrine/Timestampable.php | 57 ---------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/Doctrine/Timestampable.php diff --git a/src/Doctrine/Timestampable.php b/src/Doctrine/Timestampable.php deleted file mode 100644 index 6fafc6e..0000000 --- a/src/Doctrine/Timestampable.php +++ /dev/null @@ -1,57 +0,0 @@ -createdAt = new \DateTime(); - $this->updatedAt = new \DateTime(); - } - - /** - * @ORM\PreUpdate - */ - public function onPreUpdate(): void - { - $this->updatedAt = new \DateTime(); - } - - public function setCreatedAt(?\DateTime $createdAt): self - { - $this->createdAt = $createdAt; - - return $this; - } - - public function getCreatedAt(): ?\DateTime - { - return $this->createdAt; - } - - public function setUpdatedAt(?\DateTime $updatedAt): self - { - $this->updatedAt = $updatedAt; - - return $this; - } - - public function getUpdatedAt(): ?\DateTime - { - return $this->updatedAt; - } -}