mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 07:14:58 +00:00
Event: move validation to annotation and add UniqueEntity constraint on Participation
This commit is contained in:
@@ -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: ~
|
Reference in New Issue
Block a user