From 6d7992b19148e69f00e4ba4876e2948632c933ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Fri, 13 Dec 2024 16:31:06 +0100 Subject: [PATCH] fix: disable domain status diff when domain creation --- src/Entity/Domain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/Domain.php b/src/Entity/Domain.php index 2089294..31ac69d 100644 --- a/src/Entity/Domain.php +++ b/src/Entity/Domain.php @@ -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()); } }