smoreno
smoreno

Reputation: 3530

Symfony2: How can I disable form cascade validation?

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?

Upvotes: 3

Views: 3338

Answers (2)

smoreno
smoreno

Reputation: 3530

I resolved the problem using validation groups.

Upvotes: 2

Kris Wallsmith
Kris Wallsmith

Reputation: 8965

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.

Upvotes: 5

Related Questions