Skip to content

Commit

Permalink
remove update to be filled on entity creation and bump dot-data-fixtu…
Browse files Browse the repository at this point in the history
…res to support orm 3 and dbal 4
  • Loading branch information
Claudiu Pintiuta committed Jun 14, 2024
1 parent 8f7b2ab commit 227804b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion src/App/src/Entity/TimestampsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Check warning on line 49 in src/App/src/Entity/TimestampsTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'PreUpdate'

Check warning on line 49 in src/App/src/Entity/TimestampsTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'ORM'
Expand Down

0 comments on commit 227804b

Please sign in to comment.