Validate against only a part of the defined constraints
I have this field:
$builder->add('offices', 'entity', array( 'class' => 'ControlPanelBundle:Offices', 'property' => 'name', ));
In my form I am only using one field from all possible fields in this Offices object. When I am submitting, it tries to validate all the fields. How can I temporary disable validation only for this time?
Validation Groups are designed specifically for that.