From 9125a91fd8bd2b77d097270bf6258bfe613fb868 Mon Sep 17 00:00:00 2001 From: Andrii Kasian <akasian@magento.com> Date: Fri, 7 Oct 2016 13:18:02 +0300 Subject: [PATCH] MAGETWO-55299: [Customer] Fast Save of Product Variations - MAGETWO-55787: Fast saving of product with high number of variations generated --- .../Magento/Eav/Model/ResourceModel/CreateHandler.php | 1 - .../Magento/Eav/Model/ResourceModel/UpdateHandler.php | 11 ++--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php b/app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php index 764a0208f21..df411b6a216 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php +++ b/app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php @@ -102,7 +102,6 @@ class CreateHandler implements AttributeInterface : null; // @todo verify is it normal to not have attributer_set_id /** @var \Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute */ foreach ($this->getAttributes($entityType, $attributeSetId) as $attribute) { - $ac[] = $attribute->getAttributeCode(); if ($attribute->isStatic()) { continue; } diff --git a/app/code/Magento/Eav/Model/ResourceModel/UpdateHandler.php b/app/code/Magento/Eav/Model/ResourceModel/UpdateHandler.php index 8181f6a1361..c775a24a03c 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/UpdateHandler.php +++ b/app/code/Magento/Eav/Model/ResourceModel/UpdateHandler.php @@ -67,6 +67,7 @@ class UpdateHandler implements AttributeInterface * @param AttributePersistor $attributePersistor * @param ReadSnapshot $readSnapshot * @param ScopeResolver $scopeResolver + * @param AttributeLoader $attributeLoader */ public function __construct( AttributeRepository $attributeRepository, @@ -86,15 +87,6 @@ class UpdateHandler implements AttributeInterface $this->attributeLoader = $attributeLoader ?: ObjectManager::getInstance()->get(AttributeLoader::class); } - /** - * @deprecated - * @return \Magento\Eav\Model\Entity\AttributeCache - */ - private function getAttributeCache() - { - return ObjectManager::getInstance()->get(\Magento\Eav\Model\Entity\AttributeCache::class); - } - /** * @param string $entityType * @param int $attributeSetId @@ -104,6 +96,7 @@ class UpdateHandler implements AttributeInterface { return $this->attributeLoader->getAttributes($entityType, $attributeSetId); } + /** * @param string $entityType * @param array $entityData -- GitLab