Kaynağa Gözat

UserPointSaleFactory : correctif

packProduct
Guillaume 3 yıl önce
ebeveyn
işleme
878cf7135d
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      Factory/User/UserPointSaleFactory.php

+ 2
- 1
Factory/User/UserPointSaleFactory.php Dosyayı Görüntüle

@@ -2,6 +2,7 @@

namespace Lc\CaracoleBundle\Factory\User;

use App\Entity\User\UserPointSale;
use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
use Lc\CaracoleBundle\Model\User\UserPointSaleInterface;
use Lc\SovBundle\Factory\AbstractFactory;
@@ -11,7 +12,7 @@ class UserPointSaleFactory extends AbstractFactory
{
public function create(UserInterface $user, PointSaleInterface $pointSale): UserPointSaleInterface
{
$userPointSale = parent::create();
$userPointSale = new UserPointSale();

$userPointSale->setUser($user);
$userPointSale->setPointSale($pointSale);

Yükleniyor…
İptal
Kaydet