/**
  * @return \Application\Model\Bean\ProformaInvoiceLog
  */
 private function newLog(ProformaInvoice $proformaInvoice, $eventType)
 {
     $now = \Zend_Date::now();
     $log = ProformaInvoiceLogFactory::createFromArray(array('id_proforma_invoice' => $proformaInvoice->getIdProformaInvoice(), 'id_user' => $this->getUser()->getBean()->getIdUser(), 'date' => $now->get('yyyy-MM-dd HH:mm:ss'), 'event_type' => $eventType, 'note' => ''));
     $this->getCatalog('ProformaInvoiceLogCatalog')->create($log);
     return $log;
 }
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\ProformaInvoiceLog
  */
 protected function makeBean($resultset)
 {
     return ProformaInvoiceLogFactory::createFromArray($resultset);
 }