|
|
|
|
|
|
|
|
$productFamiliesArray = []; |
|
|
$productFamiliesArray = []; |
|
|
|
|
|
|
|
|
foreach ($parentCategory->getChildrens() as $i => $category) { |
|
|
foreach ($parentCategory->getChildrens() as $i => $category) { |
|
|
|
|
|
//Essai d'alternative |
|
|
|
|
|
// foreach ($category->getProductFamilies() as $productFamily) { |
|
|
|
|
|
// if($productFamily->getStatus()==1) { |
|
|
|
|
|
// $productFamiliesArray[$productFamily->getId()] = $productFamily; |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
$productFamiliesCategory = $this->getByCategory($category); |
|
|
$productFamiliesCategory = $this->getByCategory($category); |
|
|
foreach ($productFamiliesCategory as $productFamily) { |
|
|
foreach ($productFamiliesCategory as $productFamily) { |
|
|
$productFamiliesArray[$productFamily->getId()] = $productFamily; |
|
|
$productFamiliesArray[$productFamily->getId()] = $productFamily; |