Пример #1
0
 /**
  * @return \Application\Model\Bean\PurchaseOrderLog
  */
 private function newLog(PurchaseOrder $purchaseOrder, $eventType)
 {
     $now = \Zend_Date::now();
     $log = PurchaseOrderLogFactory::createFromArray(array('id_purchase_order' => $purchaseOrder->getIdPurchaseOrder(), 'id_user' => $this->getUser()->getBean()->getIdUser(), 'date' => $now->get('yyyy-MM-dd HH:mm:ss'), 'event_type' => $eventType, 'note' => ''));
     $this->getCatalog('PurchaseOrderLogCatalog')->create($log);
     return $log;
 }
Пример #2
0
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\PurchaseOrderLog
  */
 protected function makeBean($resultset)
 {
     return PurchaseOrderLogFactory::createFromArray($resultset);
 }