From 0ed5544ad39fb9f0d5f964e55aa7c9f8af558f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 28 Jul 2023 01:22:58 +0200 Subject: [PATCH] More useful error message when not enough people in database fixture --- .../Entity/AccompanyingPeriod/UserHistory.php | 4 ++++ 1 file changed, 4 insertions(+) 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') ) { }