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'); }
/** * * makeBean * @param array $resultset * @return \Application\Model\Bean\TemporalSupplier */ protected function makeBean($resultset) { return TemporalSupplierFactory::createFromArray($resultset); }