fix: add default createdAt updatedAt when domain is created

This commit is contained in:
Maël Gangloff
2024-07-17 22:43:13 +02:00
parent dba098441e
commit 9c58836b9b
9 changed files with 136 additions and 32 deletions

View File

@@ -111,6 +111,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');
}
public function getLdhName(): ?string