public function updateBranchGroup($form, $id) { $values = $form->getValues(); $branch = new BranchGroup(); $row = $branch->findOne($id); $row->setFromArray($values); $row->save(); }