/**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\PrintingTechniqueExtraDay
  */
 protected function makeBean($resultset)
 {
     return PrintingTechniqueExtraDayFactory::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');
         $printingTechniqueExtraDay = PrintingTechniqueExtraDayQuery::create()->findByPKOrThrow($id, $this->i18n->_("Not exists the PrintingTechniqueExtraDay with id {$id}"));
         try {
             $this->getPrintingTechniqueExtraDayCatalog()->beginTransaction();
             PrintingTechniqueExtraDayFactory::populate($printingTechniqueExtraDay, $form->getValues());
             $this->getPrintingTechniqueExtraDayCatalog()->update($printingTechniqueExtraDay);
             $this->getPrintingTechniqueExtraDayCatalog()->commit();
             $this->setFlash('ok', $this->i18n->_("Se actualizo correctamente el PrintingTechniqueExtraDay"));
         } catch (Exception $e) {
             $this->getPrintingTechniqueExtraDayCatalog()->rollBack();
             $this->setFlash('error', $this->i18n->_($e->getMessage()));
         }
     }
     $this->_redirect('printing-technique-extra-day/list');
 }