From e6202a2e341906d417c2e5ecefadc225fef52339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 30 May 2024 16:06:34 +0200 Subject: [PATCH] Remove unnecessary fields and methods from Ticket entity The "updatedAt" field and "getUpdatedAt" method, as well as the "createdBy" field and the "getCreatedBy" method have been removed from the Ticket entity. These fields and related methods were not necessary and their removal simplifies the entity structure. --- .../ChillTicketBundle/src/Entity/Ticket.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php b/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php index 689f34e87..e70447503 100644 --- a/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php +++ b/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php @@ -69,12 +69,6 @@ class Ticket implements TrackCreationInterface, TrackUpdateInterface #[ORM\OneToMany(targetEntity: PersonHistory::class, mappedBy: 'ticket')] private Collection $personHistories; - #[ORM\ManyToOne(targetEntity: User::class)] - #[ORM\JoinColumn(nullable: true)] - private ?User $updatedBy = null; - - #[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: true)] - private ?\DateTimeImmutable $createdAt = null; public function __construct() { @@ -218,14 +212,4 @@ class Ticket implements TrackCreationInterface, TrackUpdateInterface { return $this->addresseeHistory; } - - public function getCreatedAt(): \DateTimeImmutable - { - return $this->createdAt; - } - - public function getUpdatedBy(): ?User - { - return $this->updatedBy; - } }