Have you followed the "My first project" tutorial?
Have you set new Update method instead of executeUpdate()?
In tutorial they say to create validate/update.yml file and set the validation rules.
But when you set your new executeUpdateSomething() method, it's not working.
I haven't found the solution or described this problem on the net.
It took me some time, but finaly find the result.
And it's simple:
You have to name the validate/file.
.yml to according to your executeUpdateSomething() method.
It means, that the file will be no longer named update.yml but rename it to updateSomething.yml.
Now, the validation should start working again.
You have to set the handleErrorUpdateControl() too, instead of the handleErrorUpdate() that is described in the tutorial.
Yes, it's easy and logical.
But I couldn't find anything about this on the web. Have you?
Hope I have been of any help.
PS: Ok, I have found one (first) mention about this issue at the code snippets -
turn on form repopulationBut it found accidentaly while browsing through the snippets.
It's impossible to find it by a google and using logical keywords.
I am writing this article at the first place, becase I am interested how many people is looking for Symfony help and tips.
If many people will get to this article, I will start to write another ones as my learning process will evolve.
keywords:
symfony stopped validating my form
i have changed my executeUpdate and Symfony is not validating the form
Symfony is not filling (fillin) the form after submit
validation form change
update.yml