public static function update($fm) { $form = Form::find($fm['id']); $form = FormDAO::exchangeArray($form, $fm); $form->update(); return $form; }