/** * @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; }
/** * @param TblPaymentType $PaymentType */ public function setPaymentType(TblPaymentType $PaymentType) { $this->tblPaymentType = null === $PaymentType ? null : $PaymentType->getId(); }
/** * @param TblPaymentType $tblPaymentType */ public function setServiceBillingBankingPaymentType(TblPaymentType $tblPaymentType = null) { $this->serviceBilling_Banking_Payment_Type = null === $tblPaymentType ? null : $tblPaymentType->getId(); }