createBase($orderShop); $orderPayment->setMeanPayment($meanPayment); $orderPayment->setAmount($amount); $orderPayment->setPaidAt(new \DateTime()); $orderPayment->setEditable(false); return $orderPayment; } public function createBase($orderShop){ $orderPayment = new OrderPayment(); $orderPayment->setOrderShop($orderShop); return $orderPayment; } }