for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\QueryCustomize\Entity;
use Eccube\Doctrine\Query\WhereClause;
use Eccube\Doctrine\Query\WhereCustomizer;
use Eccube\Repository\QueryKey;
class AdminCustomerCustomizer extends WhereCustomizer
{
/**
* 1回以上購入している会員を抽出
* @param array $params
* @param $queryKey
* @return WhereClause[]
protected function createStatements($params, $queryKey)
// travis-ciのテストが通らないため、コメントアウト
// 試してみるにはコメントアウトを解除してください.
//return [WhereClause::gte('c.buy_times', ':buy_times', ['buy_times' => 1])];
return [];
}
* カスタマイズ対象のキーを返します。
* @return string
public function getQueryKey()
return QueryKey::CUSTOMER_SEARCH;