diff --git a/Resources/config/validation.yml b/Resources/config/validation.yml index e214de89a..b8b62d678 100644 --- a/Resources/config/validation.yml +++ b/Resources/config/validation.yml @@ -8,3 +8,19 @@ Chill\EventBundle\Entity\Participation: - NotNull: ~ constraints: - Callback: [isConsistent] + + +Chill\EventBundle\Entity\Event: + properties: + label: + - 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: ~