/** * * makeBean * @param array $resultset * @return \Application\Model\Bean\TransferLineLog */ protected function makeBean($resultset) { return TransferLineLogFactory::createFromArray($resultset); }
/** * @return \Application\Model\Bean\TransferLineLog */ private function newLog(TransferLine $transferLine, $eventType) { $now = \Zend_Date::now(); $log = TransferLineLogFactory::createFromArray(array('id_user' => $this->getUser()->getBean()->getIdUser(), 'event_type' => $eventType, 'baseEntry' => $transferLine->getBaseEntry(), 'baseLine' => $transferLine->getBaseLine(), 'itemCode' => $transferLine->getItemCode(), 'quantity' => $transferLine->getQuantity(), 'whsCode' => $transferLine->getIdWarehouse(), 'status' => $transferLine->getStatus(), 'creationDate' => $now->get('yyyy-MM-dd HH:mm:ss'))); $this->getCatalog('TransferLineLogCatalog')->create($log); return $log; }