Musings of ErisDS
beta
ErisDS

Archive > Tag > Symfony

Place this line of code in the configure method of a Symfony form to allow the saving of additional fields.

1
2
3
4
5
6
<?php
  // lib/form/MyModelForm.class.php
  public function configure() {
    $this->validatorSchema->setOption('allow_extra_fields', true);
  }
?>