Skip to content

Commit 066e7a5

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 5935506 commit 066e7a5

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

app/code/Magento/Catalog/Model/Product/Gallery/CreateHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ class CreateHandler implements ExtensionInterface
5858
*/
5959
protected $fileStorageDb;
6060

61-
/** @var array */
61+
/**
62+
* @var array
63+
*/
6264
private $mediaAttributeCodes;
6365

6466
/**

app/code/Magento/Catalog/Model/ResourceModel/Product/Link.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ public function getProductLinkId($parentId, $linkedProductId, $typeId)
9797
}
9898

9999
/**
100-
* Is product has links
100+
* Check if product has links.
101101
*
102-
* @param int $parentId
103-
* @return int
102+
* @param int $parentId ID of product
103+
* @return bool
104104
*/
105105
public function hasProductLinks($parentId)
106106
{

app/code/Magento/CatalogInventory/Model/Stock/StockItemRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function __construct(
134134
}
135135

136136
/**
137+
* @deprecated
137138
* @return \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory
138139
*/
139140
private function getProductCollectionFactory()

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
use Magento\Framework\EntityManager\MetadataPool;
1212

1313
/**
14-
* Class load and cache attributes from some attribute set
14+
* Сlass responsible for loading and caching of attributes related to the given attribute set.
15+
*
16+
* Can be used to improve performance of services that mostly read attribute data.
1517
*/
1618
class AttributeLoader
1719
{

0 commit comments

Comments
 (0)