Browse Source

Merge branch 'develop'

master
Guillaume 3 years ago
parent
commit
8592d088bc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Factory/Product/ProductFamilyFactory.php

+ 2
- 0
Factory/Product/ProductFamilyFactory.php View File

use Lc\CaracoleBundle\Context\SectionContextTrait; use Lc\CaracoleBundle\Context\SectionContextTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyModel;
use Lc\CaracoleBundle\Model\Section\SectionInterface; use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


{ {
$productFamily = new ProductFamily(); $productFamily = new ProductFamily();


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



Loading…
Cancel
Save