Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony2: How can I disable form cascade validation?

Tags:

forms

symfony

I have a form with one entity form field. When I call $form->isValid(), symfony validates the object associated to this field. I know that problem is fixed (cascade_validation) for symfony master branch, but I use synfony 2.0.9. How can I resolve this?

like image 365
smoreno Avatar asked Jan 29 '26 13:01

smoreno


2 Answers

A cascade_validation option has been added to the master branch for explicit control over this, but there is nothing in the 2.0 branch.

like image 72
Kris Wallsmith Avatar answered Feb 03 '26 08:02

Kris Wallsmith


I resolved the problem using validation groups.

like image 41
smoreno Avatar answered Feb 03 '26 10:02

smoreno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!