Entity/BaseOrder.php
public function addPayment(Payment $payment)
    {
        $this->payments->add($payment);
        $payment->setOrder($this);

        return $this;
    }
public function addPayment(Payment $payment)
    {
        $this->payments->add($payment);
        $payment->setOrder($this);

        return $this;
    }
@param Payment $payment

@return $this