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.

Need Your Help

Hash-table - Mapping a hash value to an index

hashmap hashtable

I haven't considered more than using the "MOD PRIME" type of hash functions and am a little confused as how to use a returned hash value to store a value in a HashMap.