From a3c1aa4679576857f178602c47e26118a1455caf Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 29 Sep 2025 19:18:43 +0200 Subject: [PATCH] Set isActive on cancelReason to true by default --- src/Bundle/ChillCalendarBundle/Entity/CancelReason.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillCalendarBundle/Entity/CancelReason.php b/src/Bundle/ChillCalendarBundle/Entity/CancelReason.php index d4a2ed9a9..30a8c5a27 100644 --- a/src/Bundle/ChillCalendarBundle/Entity/CancelReason.php +++ b/src/Bundle/ChillCalendarBundle/Entity/CancelReason.php @@ -24,8 +24,8 @@ class CancelReason final public const CANCELEDBY_USER = 'CANCELEDBY_USER'; - #[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN)] - private ?bool $active = null; + #[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN, options: ['default' => true])] + private bool $active = true; #[ORM\Column(type: \Doctrine\DBAL\Types\Types::STRING, length: 255)] private ?string $canceledBy = null;