File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 66use Doctrine \Common \Collections \ArrayCollection ;
77use Doctrine \Common \Collections \Collection ;
88use Doctrine \ORM \Mapping as ORM ;
9- use DateTimeImmutable ;
9+ use DateTime ;
1010use 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 ();
Original file line number Diff line number Diff line change 33namespace App \Entity ;
44
55use App \Repository \LogRepository ;
6- use DateTimeImmutable ;
6+ use DateTime ;
77use DateTimeInterface ;
88use 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
Original file line number Diff line number Diff line change 44
55use App \Repository \ServerRepository ;
66use Doctrine \ORM \Mapping as ORM ;
7- use DateTimeImmutable ;
7+ use DateTime ;
88use 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
You can’t perform that action at this time.
0 commit comments