Esempio n. 1
0
 /**
  * @param $PaymentType
  *
  * @return TblPaymentType|null|object
  */
 public function actionCreatePaymentType($PaymentType)
 {
     $Manager = $this->Connection->getEntityManager();
     $Entity = $Manager->getEntity('TblPaymentType')->findOneBy(array(TblPaymentType::ATTR_NAME => $PaymentType));
     if (null === $Entity) {
         $Entity = new TblPaymentType();
         $Entity->setName($PaymentType);
         $Manager->saveEntity($Entity);
         Protocol::useService()->createInsertEntry($this->Connection->getDatabase(), $Entity);
     }
     return $Entity;
 }
Esempio n. 2
0
 /**
  * @param TblPaymentType $PaymentType
  */
 public function setPaymentType(TblPaymentType $PaymentType)
 {
     $this->tblPaymentType = null === $PaymentType ? null : $PaymentType->getId();
 }
Esempio n. 3
0
 /**
  * @param TblPaymentType $tblPaymentType
  */
 public function setServiceBillingBankingPaymentType(TblPaymentType $tblPaymentType = null)
 {
     $this->serviceBilling_Banking_Payment_Type = null === $tblPaymentType ? null : $tblPaymentType->getId();
 }