public function update($form)
    {
        $models = $this->getFields();
        foreach ($models as $model) {
            $model->save();
        }
    }
public function update($form)
    {
        $models = $this->getFields();
        foreach ($models as $model) {
            $model->save();
        }
    }
public function update ( $ form ) { $ models = $ this -> getFields ( ) ; foreach ( $ models as $ model ) { $ model -> save ( ) ; } }
Update form model

@param Form $form
Update form model