Exemplo n.º 1
0
 public function addMake()
 {
     $ccm_makes = new CcmMakes();
     $ccm_makes->setTransactionReference($this->form_values['transaction_reference']);
     $ccm_makes->setTransactionNumber($trans_no);
     $this->_em->persist($ccm_makes);
     $this->_em->flush();
     return $stock_master->getPkId();
 }
Exemplo n.º 2
0
 public function addMake()
 {
     $ccm_makes = new CcmMakes();
     $ccm_makes->setTransactionReference($this->form_values['transaction_reference']);
     $ccm_makes->setTransactionNumber($trans_no);
     $created_by = $this->_em->find('Users', $this->_user_id);
     $ccm_makes->setCreatedBy($created_by);
     $ccm_makes->setCreatedDate(App_Tools_Time::now());
     $ccm_makes->setModifiedBy($created_by);
     $ccm_makes->setModifiedDate(App_Tools_Time::now());
     $this->_em->persist($ccm_makes);
     $this->_em->flush();
     return $stock_master->getPkId();
 }