feat: set domain as deleted when tld is deleted

This commit is contained in:
Maël Gangloff
2025-10-08 12:39:04 +02:00
parent 4409124ba8
commit dad4f98035
6 changed files with 127 additions and 25 deletions

View File

@@ -77,6 +77,9 @@ class Tld
#[ORM\OneToMany(targetEntity: Entity::class, mappedBy: 'tld')]
private Collection $entities;
#[ORM\Column(type: Types::DATE_IMMUTABLE, nullable: true)]
private ?\DateTimeImmutable $deletedAt = null;
public function __construct()
{
$this->rdapServers = new ArrayCollection();
@@ -241,4 +244,16 @@ class Tld
return $this;
}
public function getDeletedAt(): ?\DateTimeImmutable
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeImmutable $deletedAt): static
{
$this->deletedAt = $deletedAt;
return $this;
}
}