Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function getAggregations()
 {
     if (!isset($this->aggregations)) {
         $aggregations = parent::getAggregations();
         $this->aggregations = $this->transformer->transformAggregations($aggregations['categories']);
     }
     return $this->aggregations;
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function findById(\string $id) : ProductView
 {
     $result = $this->type->getDocument($id);
     $product = $this->transformer->transformObject($result->getData());
     return $product;
 }