Following data types and constraints are availible in doctrine
unique
Acts as database level unique constraint. Also validates that the specified column is unique.
nospace
Nospace validator. This validator validates that specified column doesn't contain any space/newline characters.
notblank
Notblank validator. This validator validates that specified column doesn't contain only space/newline characters. Useful in for example comment posting applications
where users are not allowed to post empty comments.
notnull
Acts as database level notnull constraint as well as notnull validator for the specified column.
email
Email validator. Validates that specified column is a valid email address.
date
Date validator.
range:[args]
Range validator, eg range:1-32
enum:[args]
Enum validator, eg enum:city1-city2-city3
country
Country code validator validates that specified column has a valid country code.
regexp:[args]
Regular expression validator validates that specified column matches a regular expression, eg regexp:[John]
ip
Ip validator validates that specified column is a valid internet protocol address.
usstate
Usstate validator validates that specified column is a valid usstate.