Skip to content

Commit f63844a

Browse files
committed
fix: correction entity error
1 parent d0ae7c4 commit f63844a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Entity/GameServer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\Common\Collections\ArrayCollection;
77
use Doctrine\Common\Collections\Collection;
88
use Doctrine\ORM\Mapping as ORM;
9-
use DateTimeImmutable;
9+
use DateTime;
1010
use DateTimeInterface;
1111

1212
#[ORM\Entity(repositoryClass: GameServerRepository::class)]
@@ -69,7 +69,7 @@ class GameServer
6969
public function __construct()
7070
{
7171
$this->stateType = 0;
72-
$this->createdAt = new DateTimeImmutable();
72+
$this->createdAt = new DateTime();
7373
$this->users = new ArrayCollection();
7474
$this->logs = new ArrayCollection();
7575
$this->cronjobs = new ArrayCollection();

src/Entity/Log.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Entity;
44

55
use App\Repository\LogRepository;
6-
use DateTimeImmutable;
6+
use DateTime;
77
use DateTimeInterface;
88
use Doctrine\ORM\Mapping as ORM;
99

@@ -35,7 +35,7 @@ class Log
3535
public function __construct()
3636
{
3737
$this->state = true;
38-
$this->createdAt = new DateTimeImmutable();
38+
$this->createdAt = new DateTime();
3939
$this->gameServer = null;
4040
}
4141

src/Entity/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use App\Repository\ServerRepository;
66
use Doctrine\ORM\Mapping as ORM;
7-
use DateTimeImmutable;
7+
use DateTime;
88
use DateTimeInterface;
99

1010
#[ORM\Entity(repositoryClass: ServerRepository::class)]
@@ -41,7 +41,7 @@ class Server
4141

4242
public function __construct()
4343
{
44-
$this->createdAt = new DateTimeImmutable();
44+
$this->createdAt = new DateTime();
4545
}
4646

4747
public function getId(): ?int

0 commit comments

Comments
 (0)