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
456d29e605
commit
884b3684fe
@ -36,6 +36,7 @@ class Status
|
|||||||
private $name;
|
private $name;
|
||||||
|
|
||||||
#[ORM\ManyToOne(targetEntity: EventType::class, inversedBy: 'statuses')]
|
#[ORM\ManyToOne(targetEntity: EventType::class, inversedBy: 'statuses')]
|
||||||
|
#[Assert\NotNull(message: 'An event status must be linked to an event type.')]
|
||||||
private ?EventType $type = null;
|
private ?EventType $type = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user