Skip to content

Commit 1b896f3

Browse files
committed
MAGETWO-54682: [Customer] Fast load of product options
- revert BC changes
1 parent 7eaac9c commit 1b896f3

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Media.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,19 @@ protected function copyImage($file)
372372
);
373373
}
374374
}
375+
376+
/**
377+
* @deprecated
378+
* @param string $key
379+
* @param string[] &$image
380+
* @return string
381+
*/
382+
protected function findDefaultValue($key, &$image)
383+
{
384+
if (isset($image[$key . '_default'])) {
385+
return $image[$key . '_default'];
386+
}
387+
388+
return '';
389+
}
375390
}

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Type/Configurable/Attribute/Collection.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,21 @@ protected function _addProductAttributes()
184184
return $this;
185185
}
186186

187+
/**
188+
* Add Associated Product Filters (From Product Type Instance)
189+
*
190+
* @deprecated
191+
* @return $this
192+
*/
193+
public function _addAssociatedProductFilters()
194+
{
195+
$this->getProductType()->getUsedProducts(
196+
$this->getProduct(),
197+
$this->getColumnValues('attribute_id') // Filter associated products
198+
);
199+
return $this;
200+
}
201+
187202
/**
188203
* Load attribute labels
189204
*

app/code/Magento/Customer/Model/Metadata/CachedMetadata.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ class CachedMetadata implements MetadataInterface
3232
*/
3333
protected $metadata;
3434

35+
/**
36+
* @deplacated
37+
* @var array
38+
*/
39+
protected $attributeMetadataCache = [];
40+
41+
/**
42+
* @deplacated
43+
* @var array
44+
*/
45+
protected $attributesCache = [];
46+
47+
/**
48+
* @deplacated
49+
* @var \Magento\Customer\Api\Data\AttributeMetadataInterface[]
50+
*/
51+
protected $allAttributeMetadataCache = null;
52+
53+
/**
54+
* @deplacated
55+
* @var \Magento\Customer\Api\Data\AttributeMetadataInterface[]
56+
*/
57+
protected $customAttributesMetadataCache = null;
58+
3559
/**
3660
* Initialize dependencies.
3761
*

0 commit comments

Comments
 (0)