Пример #1
0
 /**
  * @param \Generated\Shared\Transfer\PriceProductTransfer $transferPriceProduct
  *
  * @return bool
  */
 protected function isPriceTypeExistingForProductConcrete(PriceProductTransfer $transferPriceProduct)
 {
     $priceType = $this->reader->getPriceTypeByName($transferPriceProduct->getPriceTypeName());
     $priceEntities = $this->queryContainer->queryPriceEntityForProductConcrete($transferPriceProduct->getSkuProduct(), $priceType);
     return $priceEntities->count() > 0;
 }
Пример #2
0
 /**
  * @param string $sku
  * @param \Orm\Zed\Price\Persistence\SpyPriceType $priceType
  *
  * @return \Orm\Zed\Price\Persistence\SpyPriceProduct
  */
 protected function getPriceEntityForProductAbstract($sku, $priceType)
 {
     return $this->queryContainer->queryPriceEntityForProductAbstract($sku, $priceType)->findOne();
 }