/**
  * @return \Application\Model\Bean\ProformaInvoiceLog
  */
 private function newEntryLog(ProformaInvoiceEntry $proformaInvoiceEntry, $eventType)
 {
     $now = \Zend_Date::now();
     $log = ProformaInvoiceEntryLogFactory::createFromArray(array('id_proforma_invoice' => $proformaInvoiceEntry->getIdProformaInvoice(), 'id_proforma_invoice_entry' => $proformaInvoiceEntry->getLine(), 'id_user' => $this->getUser()->getBean()->getIdUser(), 'date_log' => $now->get('yyyy-MM-dd HH:mm:ss'), 'event_type' => $eventType, 'note' => ''));
     $this->getCatalog('ProformaInvoiceEntryLogCatalog')->create($log);
     return $log;
 }
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\ProformaInvoiceEntryLog
  */
 protected function makeBean($resultset)
 {
     return ProformaInvoiceEntryLogFactory::createFromArray($resultset);
 }