fix: disable domain status diff when domain creation

This commit is contained in:
Maël Gangloff
2024-12-13 16:31:06 +01:00
parent 1c64239d89
commit 6d7992b191

View File

@@ -132,8 +132,8 @@ class Domain
$this->domainEntities = new ArrayCollection();
$this->watchLists = new ArrayCollection();
$this->nameservers = new ArrayCollection();
$this->createdAt = new \DateTimeImmutable('now');
$this->updatedAt = new \DateTimeImmutable('now');
$this->createdAt = $this->updatedAt;
$this->deleted = false;
$this->domainStatuses = new ArrayCollection();
}
@@ -296,7 +296,7 @@ class Domain
{
$this->setUpdatedAt(new \DateTimeImmutable('now'));
if (null === $this->getCreatedAt()) {
$this->setCreatedAt(new \DateTimeImmutable('now'));
$this->setCreatedAt($this->getUpdatedAt());
}
}