Symfony: Allowing extra field in validated forms
A quick hint: it unnerves me when I have to add a new field to a Doctrine form that does not belong to the model and thus always fires a validator error. Since I don’t have time and don’t want to create a whole validator array for my rather big form, I used
$this->validatorSchema->setOption(’allow_extra_fields’, true);
to allow [...]
