Skip to content

Commit

Permalink
added property for additional date validators
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Dec 21, 2015
1 parent df5fd82 commit a004be5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,23 @@ class ValidationConstraints {
def dispatch fieldAnnotations(DatetimeField it) '''
«fieldAnnotationsMandatory»
«' '»* @Assert\DateTime()
«IF validatorAddition !== null && validatorAddition != ''»
«' '»* @Assert\«validatorAddition»
«ENDIF»
'''
def dispatch fieldAnnotations(DateField it) '''
«fieldAnnotationsMandatory»
«' '»* @Assert\Date()
«IF validatorAddition !== null && validatorAddition != ''»
«' '»* @Assert\«validatorAddition»
«ENDIF»
'''
def dispatch fieldAnnotations(TimeField it) '''
«fieldAnnotationsMandatory»
«' '»* @Assert\Time()
«IF validatorAddition !== null && validatorAddition != ''»
«' '»* @Assert\«validatorAddition»
«ENDIF»
'''
def dispatch validationMethods(ListField it) '''
Expand Down

0 comments on commit a004be5

Please sign in to comment.