Chill\PersonBundle\Entity\AccompanyingPeriod: properties: openingDate: - Date: message: 'Opening date is not valid' - NotNull: message: 'Opening date can not be null' closingDate: - Date: message: 'Closing date is not valid' - NotNull: message: 'Closing date can not be null' groups: [closed] constraints: - Callback: callback: isDateConsistent - 'Chill\PersonBundle\Validator\Constraints\AccompanyingPeriod\LocationValidity': ~ Chill\PersonBundle\Entity\PersonPhone: properties: phonenumber: - Regex: pattern: '/^([\+{1}])([0-9\s*]{4,20})$/' groups: [ general, creation ] message: 'Invalid phone number: it should begin with the international prefix starting with "+", hold only digits and be smaller than 20 characters. Ex: +33123456789' - Chill\MainBundle\Validation\Constraint\PhonenumberConstraint: type: any groups: [ general, creation ]