Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /**
  * @param string $sku
  * @param \Orm\Zed\Price\Persistence\SpyPriceType $priceType
  *
  * @return \Orm\Zed\Price\Persistence\SpyPriceProduct
  */
 protected function getPriceEntityForProductConcrete($sku, $priceType)
 {
     return $this->queryContainer->queryPriceEntityForProductConcrete($sku, $priceType)->findOne();
 }