/**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\QuestionMultipleResponse
  */
 protected function makeBean($resultset)
 {
     return QuestionMultipleResponseFactory::createFromArray($resultset);
 }
 /**
  *
  * @return array
  */
 public function updateAction()
 {
     $form = $this->getForm();
     if ($this->getRequest()->isPost()) {
         $params = $this->getRequest()->getParams();
         if (!$form->isValid($params)) {
             $this->view->setTpl("New");
             $this->view->form = $form;
             return;
         }
         $id = $this->getRequest()->getParam('id');
         $questionMultipleResponse = QuestionMultipleResponseQuery::create()->findByPKOrThrow($id, $this->i18n->_("It does not exist the QuestionMultipleResponse with id {$id}"));
         try {
             $this->getQuestionMultipleResponseCatalog()->beginTransaction();
             QuestionMultipleResponseFactory::populate($questionMultipleResponse, $form->getValues());
             $this->getQuestionMultipleResponseCatalog()->update($questionMultipleResponse);
             $this->getQuestionMultipleResponseCatalog()->commit();
             $this->setFlash('ok', $this->i18n->_("Se actualizo correctamente el QuestionMultipleResponse"));
         } catch (Exception $e) {
             $this->getQuestionMultipleResponseCatalog()->rollBack();
             $this->setFlash('error', $this->i18n->_($e->getMessage()));
         }
     }
     $this->_redirect('question-multiple-response/list');
 }