Ejemplo n.º 1
0
 /**
  * Disables validation
  *
  * @return self
  */
 public function disableValidation()
 {
     foreach ($this->fields->all() as $field) {
         if ($field instanceof Field\ChoiceFormField) {
             $field->disableValidation();
         }
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Removes a field from the form.
  *
  * @param string $name The field name
  */
 public function offsetUnset($name)
 {
     $this->fields->remove($name);
 }