Exemplo n.º 1
0
 /**
  * @param string $categoryKey
  * @param int $idLocale
  *
  * @return \Generated\Shared\Transfer\CategoryTransfer
  */
 public function getCategoryByKey($categoryKey, $idLocale)
 {
     $categoryQuery = $this->queryContainer->queryByCategoryKey($categoryKey, $idLocale);
     $entity = $categoryQuery->findOne();
     $transfer = new CategoryTransfer();
     $transfer->fromArray($entity->toArray());
     return $transfer;
 }