/** * {@inheritdoc} */ public function removePayment(BasePaymentInterface $payment) { if ($this->hasPayment($payment)) { $this->payments->removeElement($payment); } return $this; }
/** * {@inheritdoc} */ public function removePayment(BasePaymentInterface $payment) { /** @var $payment PaymentInterface */ if ($this->hasPayment($payment)) { $this->payments->removeElement($payment); $payment->setOrder(null); } }