8 use Magento\Catalog\Model\ProductFactory;
22 private $productAttributeRepository;
27 private $productFactory;
35 ProductFactory $productFactory
54 public function afterSave(
79 $eavAttribute = $this->productAttributeRepository->get($configurableOption->getAttributeId());
95 private function validateProductLinks(array
$attributeCodes, array $linkIds)
100 $variation = $this->productFactory->create()->load(
$productId);
104 throw new InputException(
110 if (isset($valueMap[$valueKey])) {
111 throw new InputException(
113 'Products "%1" and "%2" have the same set of attribute values.',
$productAttributeRepository
__construct(ProductAttributeRepositoryInterface $productAttributeRepository, ProductFactory $productFactory)