null])] private ?\DateTimeImmutable $updatedAt = null; #[Serializer\Groups(['read'])] #[ORM\ManyToOne(targetEntity: User::class)] #[ORM\JoinColumn(nullable: true)] private ?User $updatedBy = null; public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function getUpdatedBy(): ?User { return $this->updatedBy; } public function setUpdatedAt(\DateTimeInterface $datetime): self { $this->updatedAt = $datetime instanceof \DateTime ? \DateTimeImmutable::createFromMutable($datetime) : $datetime; return $this; } public function setUpdatedBy(User $user): self { $this->updatedBy = $user; return $this; } }