Skip to content

Commit 9125a91

Browse files
committed
MAGETWO-55299: [Customer] Fast Save of Product Variations
- MAGETWO-55787: Fast saving of product with high number of variations generated
1 parent efe5d40 commit 9125a91

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public function execute($entityType, $entityData, $arguments = [])
102102
: null; // @todo verify is it normal to not have attributer_set_id
103103
/** @var \Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute */
104104
foreach ($this->getAttributes($entityType, $attributeSetId) as $attribute) {
105-
$ac[] = $attribute->getAttributeCode();
106105
if ($attribute->isStatic()) {
107106
continue;
108107
}

app/code/Magento/Eav/Model/ResourceModel/UpdateHandler.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class UpdateHandler implements AttributeInterface
6767
* @param AttributePersistor $attributePersistor
6868
* @param ReadSnapshot $readSnapshot
6969
* @param ScopeResolver $scopeResolver
70+
* @param AttributeLoader $attributeLoader
7071
*/
7172
public function __construct(
7273
AttributeRepository $attributeRepository,
@@ -86,15 +87,6 @@ public function __construct(
8687
$this->attributeLoader = $attributeLoader ?: ObjectManager::getInstance()->get(AttributeLoader::class);
8788
}
8889

89-
/**
90-
* @deprecated
91-
* @return \Magento\Eav\Model\Entity\AttributeCache
92-
*/
93-
private function getAttributeCache()
94-
{
95-
return ObjectManager::getInstance()->get(\Magento\Eav\Model\Entity\AttributeCache::class);
96-
}
97-
9890
/**
9991
* @param string $entityType
10092
* @param int $attributeSetId
@@ -104,6 +96,7 @@ protected function getAttributes($entityType, $attributeSetId = null)
10496
{
10597
return $this->attributeLoader->getAttributes($entityType, $attributeSetId);
10698
}
99+
107100
/**
108101
* @param string $entityType
109102
* @param array $entityData

0 commit comments

Comments
 (0)