diff --git a/src/Bundle/ChillEventBundle/Entity/Status.php b/src/Bundle/ChillEventBundle/Entity/Status.php index 38c07879c..89ec9e8b9 100644 --- a/src/Bundle/ChillEventBundle/Entity/Status.php +++ b/src/Bundle/ChillEventBundle/Entity/Status.php @@ -36,6 +36,7 @@ class Status private $name; #[ORM\ManyToOne(targetEntity: EventType::class, inversedBy: 'statuses')] + #[Assert\NotNull(message: 'An event status must be linked to an event type.')] private ?EventType $type = null; /**