When following Symfony2's validation documentation (http://symfony.com/doc/current/book/validation.html) the writer often refers to
src/Acme/BlogBundle/Resources/config/validation.yml
I also have this file, at the proper location (accounting for my bundle name and vendor ofcourse) but it is completely ignored.
Do I need to load this from somewhere?
You don't have to load the validation.yml programmaticaly. You just modify the config.yml to enable validation and to disable annotations:
framework: validation: { enabled: true, enable_annotations: false }
2.1m questions
2.1m answers
60 comments
57.0k users