getQueryBuilderBySearchDataForAdmin() public method

get query builder.
public getQueryBuilderBySearchDataForAdmin ( array $searchData ) : Doctrine\ORM\QueryBuilder
$searchData array
return Doctrine\ORM\QueryBuilder
Exemplo n.º 1
0
 /**
  * 商品検索用のクエリビルダを返す.
  *
  * @param Request $request
  * @return \Doctrine\ORM\QueryBuilder
  */
 public function getProductQueryBuilder(Request $request)
 {
     $session = $request->getSession();
     if ($session->has('eccube.admin.product.search')) {
         $searchData = $session->get('eccube.admin.product.search');
     } else {
         $searchData = array();
     }
     // 商品データのクエリビルダを構築.
     $qb = $this->productRepository->getQueryBuilderBySearchDataForAdmin($searchData);
     return $qb;
 }