소스 검색

Merge branch 'develop'

master
Guillaume Bourgeois 1 년 전
부모
커밋
5d930e2768
2개의 변경된 파일11개의 추가작업 그리고 5개의 파일을 삭제
  1. +10
    -4
      Model/Product/ProductFamilyModel.php
  2. +1
    -1
      Repository/Product/ProductFamilyRepositoryQuery.php

+ 10
- 4
Model/Product/ProductFamilyModel.php 파일 보기

@@ -49,11 +49,17 @@ abstract class ProductFamilyModel extends AbstractFullEntity implements ProductP
const QUALITY_LABEL_RECUP = 'recup';

static $organicLabels = [
self::QUALITY_LABEL_AB,
self::QUALITY_LABEL_NP,
self::QUALITY_LABEL_HVE,
self::QUALITY_LABEL_TVVR
self::QUALITY_LABEL_AB,
self::QUALITY_LABEL_NP,
self::QUALITY_LABEL_HVE,
self::QUALITY_LABEL_TVVR
];

static $organicStrictLabels = [
self::QUALITY_LABEL_AB,
self::QUALITY_LABEL_NP
];

static $geographicLabels = [
self::QUALITY_LABEL_AOC,
self::QUALITY_LABEL_AOP,

+ 1
- 1
Repository/Product/ProductFamilyRepositoryQuery.php 파일 보기

@@ -140,7 +140,7 @@ class ProductFamilyRepositoryQuery extends AbstractRepositoryQuery
{
return $this->innerJoin('.qualityLabels', 'qualityLabel')
->andWhere('qualityLabel.devAlias IN (:organicLabels)')
->setParameter(':organicLabels', ProductFamilyModel::$organicLabels);
->setParameter(':organicLabels', ProductFamilyModel::$organicStrictLabels);
}

public function filterIsNovelty()

Loading…
취소
저장