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
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

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