public function setOrderId($orderId) { $this->__load(); return parent::setOrderId($orderId); }
private function saveToPaymentHistory($debitData, Customer $from, Customer $to = null, $amount, $question_id = null, $orderId = null) { $payment = new PaymentHistory(); $payment->setReference($debitData->id); $payment->setData(json_encode($debitData)); $payment->setFromUser($from); $payment->setToUser($to); $payment->setState($debitData->status); $payment->setAmount($amount); $payment->setBalancedUri($debitData->href); $payment->setQuestionId($question_id); $payment->setOrderId($orderId); $this->em->persist($payment); $this->em->flush($payment); return $payment; }