feat: add tld properties

This commit is contained in:
Maël Gangloff
2024-07-19 18:59:21 +02:00
parent 08e13e73c4
commit 300e68e3a1
11 changed files with 382 additions and 96 deletions

View File

@@ -105,6 +105,10 @@ class Domain
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
private ?DateTimeImmutable $updatedAt = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(referencedColumnName: 'tld', nullable: false)]
private ?Tld $tld = null;
public function __construct()
{
$this->events = new ArrayCollection();
@@ -293,4 +297,16 @@ class Domain
$this->createdAt = $createdAt;
}
public function getTld(): ?Tld
{
return $this->tld;
}
public function setTld(?Tld $tld): static
{
$this->tld = $tld;
return $this;
}
}