ソースを参照

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 ファイルの表示

const QUALITY_LABEL_RECUP = 'recup'; const QUALITY_LABEL_RECUP = 'recup';


static $organicLabels = [ 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 = [ static $geographicLabels = [
self::QUALITY_LABEL_AOC, self::QUALITY_LABEL_AOC,
self::QUALITY_LABEL_AOP, self::QUALITY_LABEL_AOP,

+ 1
- 1
Repository/Product/ProductFamilyRepositoryQuery.php ファイルの表示

{ {
return $this->innerJoin('.qualityLabels', 'qualityLabel') return $this->innerJoin('.qualityLabels', 'qualityLabel')
->andWhere('qualityLabel.devAlias IN (:organicLabels)') ->andWhere('qualityLabel.devAlias IN (:organicLabels)')
->setParameter(':organicLabels', ProductFamilyModel::$organicLabels);
->setParameter(':organicLabels', ProductFamilyModel::$organicStrictLabels);
} }


public function filterIsNovelty() public function filterIsNovelty()

読み込み中…
キャンセル
保存