From 227804bc1dff996df36167e4b99d7f2f58bfae61 Mon Sep 17 00:00:00 2001 From: Claudiu Pintiuta Date: Fri, 14 Jun 2024 17:08:19 +0300 Subject: [PATCH] remove update to be filled on entity creation and bump dot-data-fixtures to support orm 3 and dbal 4 --- composer.json | 3 +-- src/App/src/Entity/TimestampsTrait.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f34de97..979cdc0 100644 --- a/composer.json +++ b/composer.json @@ -53,7 +53,7 @@ "ext-json": "*", "dotkernel/dot-cache": "^4.0", "dotkernel/dot-cli": "^3.5.0", - "dotkernel/dot-data-fixtures": "^1.1.3", + "dotkernel/dot-data-fixtures": "^1.2.2", "dotkernel/dot-dependency-injection": "^1.0", "dotkernel/dot-errorhandler": "^3.3.2", "dotkernel/dot-mail": "^4.1.1", @@ -78,7 +78,6 @@ "mezzio/mezzio-twigrenderer": "^2.15.0", "ramsey/uuid-doctrine": "^2.1.0", "roave/psr-container-doctrine": "^5.1.0", - "doctrine/orm": "^3.2", "symfony/filesystem": "^7.0.3" }, "require-dev": { diff --git a/src/App/src/Entity/TimestampsTrait.php b/src/App/src/Entity/TimestampsTrait.php index 52f9f18..d54be99 100644 --- a/src/App/src/Entity/TimestampsTrait.php +++ b/src/App/src/Entity/TimestampsTrait.php @@ -44,7 +44,6 @@ public function getUpdatedFormatted(string $dateFormat = 'Y-m-d H:i:s'): ?string public function created(): void { $this->created = new DateTimeImmutable(); - $this->updated = new DateTimeImmutable(); } #[ORM\PreUpdate]