Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 708 Bytes

File metadata and controls

28 lines (19 loc) · 708 Bytes
description SymbolAttribute Criterion

SymbolAttributeCriterion

The SymbolAttribute Search Criterion searches for products by symbol attribute.

Arguments

  • identifier - identifier of the format
  • value - array with the values to search for

Example

PHP

<?php

use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
use Ibexa\Contracts\ProductCatalogSymbolAttribute\Search\Criterion\SymbolAttribute;

$query = new ProductQuery();
$query->setFilter(new SymbolAttribute('ean', ['5023920187205']));
/** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService*/
$results = $productService->findProducts($query);