/** * @param string $importKeyProductOptionValue * * @throws \Spryker\Zed\ProductOption\Business\Exception\MissingProductOptionValueException * * @return \Orm\Zed\ProductOption\Persistence\SpyProductOptionValue */ protected function getProductOptionValue($importKeyProductOptionValue) { $productOptionValue = $this->queryContainer->queryProductOptionValueByImportKey($importKeyProductOptionValue)->findOne(); if ($productOptionValue === null) { throw new MissingProductOptionValueException(sprintf('Tried to retrieve a product option value with import key %s, but it does not exist.', $importKeyProductOptionValue)); } return $productOptionValue; }