We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d7a063 commit 8c6912bCopy full SHA for 8c6912b
doctrine/events.rst
@@ -76,7 +76,7 @@ define a callback for the ``prePersist`` Doctrine event:
76
*/
77
public function setCreatedAtValue(): void
78
{
79
- $this->createdAt = new \DateTime();
+ $this->createdAt = new \DateTimeImmutable();
80
}
81
82
0 commit comments