src/PHPDish/Bundle/PaymentBundle/Service/PaymentManager.php
public function createPayment(UserInterface $user = null)
    {
        $payment = new $this->paymentEntity;
        $now = Carbon::now();
        $payment->setUser($user)
            ->setStatus(PaymentInterface::STATUS_WAITING)
            ->setCreatedAt($now)
            ->setUpdatedAt($now);
        return $payment;
    }
public function createPayment(UserInterface $user = null)
    {
        $payment = new $this->paymentEntity;
        $now = Carbon::now();
        $payment->setUser($user)
            ->setStatus(PaymentInterface::STATUS_WAITING)
            ->setCreatedAt($now)
            ->setUpdatedAt($now);
        return $payment;
    }
{@inheritdoc}