<?phpnamespace App\Entity;use App\Repository\HtNoteRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=HtNoteRepository::class) * @ORM\HasLifecycleCallbacks() */class HtNote{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=htItem::class, inversedBy="htNotes") * @ORM\JoinColumn(nullable=false) */ private $htItem; /** * @ORM\ManyToOne(targetEntity=Escandallo::class, inversedBy="htNotes") * @ORM\JoinColumn(nullable=false) */ private $htEscandallo; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $note; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $createdId; /** * @ORM\Column(type="datetime_immutable") */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $updatedId; public function getId(): ?int { return $this->id; } public function getHtItem(): ?htItem { return $this->htItem; } public function setHtItem(?htItem $htItem): self { $this->htItem = $htItem; return $this; } public function getHtEscandallo(): ?Escandallo { return $this->htEscandallo; } public function setHtEscandallo(?Escandallo $htEscandallo): self { $this->htEscandallo = $htEscandallo; return $this; } public function getNote(): ?string { return $this->note; } public function setNote(?string $note): self { $this->note = $note; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getCreatedId(): ?User { return $this->createdId; } public function setCreatedId(?User $createdId): self { $this->createdId = $createdId; return $this; } public function getUpdatedAt(): ?\DateTimeImmutable { return $this->updatedAt; } public function setUpdatedAt(\DateTimeImmutable $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } /** * @ORM\PrePersist */ public function setCreatedAtValue() { $this->createdAt = new \DateTimeImmutable(); } /** * @ORM\PrePersist * @ORM\PreUpdate */ public function setUpdatedAtValue() { $this->updatedAt = new \DateTimeImmutable(); } public function getUpdatedId(): ?User { return $this->updatedId; } public function setUpdatedId(?User $updatedId): self { $this->updatedId = $updatedId; return $this; }}