Преглед на файлове

[Backend] Factory ProductFamily : valeur par défaut pour behaviorAddToCart sur simple

packProduct
Guillaume преди 3 години
родител
ревизия
131ab493e7
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. +2
    -0
      Factory/Product/ProductFamilyFactory.php

+ 2
- 0
Factory/Product/ProductFamilyFactory.php Целия файл

@@ -6,6 +6,7 @@ use App\Entity\Product\ProductFamily;
use Lc\CaracoleBundle\Context\SectionContextTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyModel;
use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory;

@@ -15,6 +16,7 @@ class ProductFamilyFactory extends AbstractFactory
{
$productFamily = new ProductFamily();

$productFamily->setBehaviorAddToCart(ProductFamilyModel::BEHAVIOR_ADD_TO_CART_SIMPLE);
$productFamily->setSaleStatus(true);
$productFamily->setStatus(1);


Loading…
Отказ
Запис