diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php index 02f3170..38e003c 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php @@ -84,7 +84,9 @@ class User */ public function onCreate() { - $this->createdAt = new \DateTime(); + if (!$this->createdAt) { + $this->createdAt = new \DateTime(); + } } /**