diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php index 5224722e7..c4aa75bc7 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php @@ -49,6 +49,10 @@ class UserHistory implements TrackCreationInterface * @ORM\JoinColumn(nullable=false) */ private User $user, + + /** + * @ORM\Column(type="datetime_immutable", nullable=false, options={"default": "now()"}) + */ private DateTimeImmutable $startDate = new DateTimeImmutable('now') ) { }