소스 검색

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…
취소
저장