From 69465c387d5d37365d2f93d8fc68cd724c10ab02 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Thu, 24 Mar 2016 14:33:18 +0100 Subject: [PATCH] Adding validation for the event --- Resources/config/validation.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Resources/config/validation.yml b/Resources/config/validation.yml index 90ebf28e0..4163cd0bf 100644 --- a/Resources/config/validation.yml +++ b/Resources/config/validation.yml @@ -1,3 +1,17 @@ +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: ~ Chill\EventBundle\Event\Participation: properties: event: