validation - Symfony2 backend datetime yml validatiion -


i've been trying validate datetime field using yml (validation.yml) file. though validates "datetime type" doesn't validate "null" or "blank". i've tried using notblank , notnull.

  expirationstartdate:         - datetime: ~         - notblank: ~      expirationenddate:         - datetime: ~         - notblank: ~ 


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

Meteor app using NGINX as load balancer -

python - How to find the cumulative sum of numbers in a list? -