예제 #1
0
파일: Order.php 프로젝트: gaetzone/Sylius
 /**
  * {@inheritdoc}
  */
 public function removePayment(BasePaymentInterface $payment)
 {
     if ($this->hasPayment($payment)) {
         $this->payments->removeElement($payment);
     }
     return $this;
 }
예제 #2
0
파일: Order.php 프로젝트: vikey89/Sylius
 /**
  * {@inheritdoc}
  */
 public function removePayment(BasePaymentInterface $payment)
 {
     /** @var $payment PaymentInterface */
     if ($this->hasPayment($payment)) {
         $this->payments->removeElement($payment);
         $payment->setOrder(null);
     }
 }