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