Chill\PersonBundle\Entity\Person: properties: belgian_national_number: - NotBlank: groups: [general] - CL\BelgianNationalNumberBundle\Validator\Constraint\BelgianNationalNumber: groups: [general] name: - NotBlank: groups: [general, creation] - Length: min: 2 max: 255 minMessage: validation.Person.constraint.name_min maxMessage: validation.Person.constraint.name_max groups: [general, creation] surname: - NotBlank: groups: [general, creation] - Length: min: 2 max: 255 minMessage: validation.Person.constraint.name_min maxMessage: validation.Person.constraint.name_max groups: [general] dateOfBirth: - Date: message: validation.Person.constraint.dateOfBirth.not_valid groups: [general, creation] nbOfChild: - Range: min: 0 max: 20 minMessage: validation.Person.constraint.nbOfChild_min maxMessage: validation.Person.constraint.nbOfChild_max invalidMessage: validation.Person.constraint.nbOfChild_invalid groups: [general] history: - Valid: traverse: true constraints: - Callback: methods: [isHistoryValid] groups: [history_consistent] Chill\PersonBundle\Entity\PersonHistoryFile: properties: date_opening: - Date: message: validation.history.date_opening.not_valid - NotNull: message: validation.history.date_opening.not_null date_closing: - Date: message: validation.history.date_closing.not_valid - NotNull: message: validation.history.date_closing.not_null groups: [closed] constraints: - Callback: methods: [isDateConsistent]