예제 #1
0
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\SalesParameter
  */
 protected function makeBean($resultset)
 {
     return SalesParameterFactory::createFromArray($resultset);
 }
예제 #2
0
 /**
  * (non-PHPdoc)
  * @see Application\Controller.CrudController::updateAction()
  */
 public function updateAction()
 {
     $params = $this->getRequest()->getParams();
     $salesParameter = SalesParameterFactory::createFromArray($params);
     $this->getSalesParameterCatalog()->beginTransaction();
     try {
         $this->getSalesParameterCatalog()->update($salesParameter);
     } catch (Exception $e) {
         $this->setFlash('error', $e->getMessage());
         $this->getSalesParameterCatalog()->rollBack();
         $this->_redirect('sales-parameter/list');
     }
     $this->setFlash('ok', $this->i18n->_('The Sales Parameter has been updated'));
     $this->getSalesParameterCatalog()->commit();
     $this->_redirect('sales-parameter/list');
 }