Event: move validation to annotation and add UniqueEntity constraint on Participation

This commit is contained in:
2023-11-28 13:12:43 +01:00
parent 6d04e477f8
commit e586b8ee5e
6 changed files with 12 additions and 29 deletions

View File

@@ -1,26 +0,0 @@
Chill\EventBundle\Entity\Participation:
properties:
event:
- NotNull: ~
status:
- NotNull: ~
person:
- NotNull: ~
constraints:
- Callback: isConsistent
Chill\EventBundle\Entity\Event:
properties:
name:
- Length:
min: 3
max: 75
minMessage: The event name must have at least {{ limit }} characters.
maxMessage: The event name must have maximum {{ limit }} characters.
type:
- NotNull: ~
circle:
- NotNull: ~
center:
- NotNull: ~