diff --git a/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php b/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php index 04cfe828b..9fc4d6a15 100644 --- a/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php +++ b/src/Bundle/ChillTicketBundle/src/Entity/Ticket.php @@ -69,6 +69,13 @@ 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() { $this->addresseeHistory = new ArrayCollection(); @@ -76,6 +83,7 @@ class Ticket implements TrackCreationInterface, TrackUpdateInterface $this->motiveHistories = new ArrayCollection(); $this->personHistories = new ArrayCollection(); $this->inputHistories = new ArrayCollection(); + } public function getId(): ?int @@ -211,4 +219,16 @@ class Ticket implements TrackCreationInterface, TrackUpdateInterface { return $this->addresseeHistory; } + + public function getCreatedAt(): \DateTimeImmutable + { + return $this->createdAt; + } + + public function getUpdatedBy(): ?User + { + return $this->updatedBy; + } + + } diff --git a/src/Bundle/ChillTicketBundle/src/Resources/public/types.ts b/src/Bundle/ChillTicketBundle/src/Resources/public/types.ts index 6d8657f82..1af87d044 100644 --- a/src/Bundle/ChillTicketBundle/src/Resources/public/types.ts +++ b/src/Bundle/ChillTicketBundle/src/Resources/public/types.ts @@ -2,7 +2,6 @@ import { DateTime, TranslatableString, User, - UserGroup, UserGroupOrUser } from "../../../../ChillMainBundle/Resources/public/types"; import { Person } from "../../../../ChillPersonBundle/Resources/public/types"; diff --git a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue index cf4eff359..e738bd10a 100644 --- a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue +++ b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue @@ -1,5 +1,75 @@