Esempio n. 1
0
 public function temporalSupplierUpdateAction()
 {
     $params = $this->getRequest()->getParams();
     $supplier = TemporalSupplierFactory::createFromArray($params);
     $this->getCatalog('TemporalSupplierCatalog')->beginTransaction();
     try {
         $this->getCatalog('TemporalSupplierCatalog')->update($supplier);
         $this->setFlash('ok', 'The Temporal Supplier has been updated');
     } catch (Exception $e) {
         $this->getCatalog('TemporalSupplierCatalog')->rollBack();
         $this->setFlash('error', $e->getMessage());
         $this->_redirect('temporal-supplier-list');
     }
     $this->getCatalog('TemporalSupplierCatalog')->commit();
     $this->_redirect('supplier/temporal-supplier-list');
 }
Esempio n. 2
0
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\TemporalSupplier
  */
 protected function makeBean($resultset)
 {
     return TemporalSupplierFactory::createFromArray($resultset);
 }