瀏覽代碼

Essais cache #489

develop
Guillaume Bourgeois 2 年之前
父節點
當前提交
1caaf3a2c7
共有 4 個檔案被更改,包括 3 行新增5 行删除
  1. +1
    -1
      Model/Product/ProductCategoryModel.php
  2. +1
    -1
      Repository/Product/ProductCategoryRepositoryQuery.php
  3. +1
    -0
      Repository/Product/ProductCategoryStore.php
  4. +0
    -3
      Repository/Product/ProductFamilyStore.php

+ 1
- 1
Model/Product/ProductCategoryModel.php 查看文件

@@ -29,7 +29,7 @@ abstract class ProductCategoryModel extends AbstractFullEntity implements TreeIn
protected $parent;

/**
* @ORM\OneToMany(targetEntity="Lc\CaracoleBundle\Model\Product\ProductCategoryInterface", mappedBy="parent" , fetch="EAGER"))
* @ORM\OneToMany(targetEntity="Lc\CaracoleBundle\Model\Product\ProductCategoryInterface", mappedBy="parent", fetch="EAGER")
* @ORM\OrderBy({"position" = "ASC"})
*/
protected $childrens;

+ 1
- 1
Repository/Product/ProductCategoryRepositoryQuery.php 查看文件

@@ -3,6 +3,7 @@
namespace Lc\CaracoleBundle\Repository\Product;

use Knp\Component\Pager\PaginatorInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
use Lc\CaracoleBundle\Repository\SectionRepositoryQueryTrait;
use Lc\SovBundle\Doctrine\EntityInterface;
use Lc\SovBundle\Repository\AbstractRepositoryQuery;
@@ -36,5 +37,4 @@ class ProductCategoryRepositoryQuery extends AbstractRepositoryQuery

return $this->andWhere('productFamilies.status = 1');
}

}

+ 1
- 0
Repository/Product/ProductCategoryStore.php 查看文件

@@ -3,6 +3,7 @@
namespace Lc\CaracoleBundle\Repository\Product;

use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
use Lc\CaracoleBundle\Repository\MerchantStoreTrait;
use Lc\CaracoleBundle\Repository\SectionStoreTrait;
use Lc\CaracoleBundle\Repository\AbstractStore;

+ 0
- 3
Repository/Product/ProductFamilyStore.php 查看文件

@@ -120,11 +120,9 @@ class ProductFamilyStore extends AbstractStore
public function getOrganic($user = null, $organizeByParentCategory = true, $query = null)
{
$query = $this->createDefaultQuery($query);

$query
->filterIsOrganicLabel()
->filterIsOnline();

$results = $query->find();

return $this->getWithReductions($results, $user, false, $organizeByParentCategory);
@@ -151,7 +149,6 @@ class ProductFamilyStore extends AbstractStore
return [];
}


// findByTerms
public function getByTerms(
$terms,

Loading…
取消
儲存