mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add a notnull constraint on property 'type' when creating an event status
This commit is contained in:
parent
df30ca2c4f
commit
3f381c207d
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user