Skip to content

Commit b2c55f7

Browse files
MAGETWO-91540: REST API extension_attributes for configurable products is empty when using search criteria on products
- Fix static test
1 parent 4126d27 commit b2c55f7

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use Magento\Framework\Exception\ValidatorException;
3131

3232
/**
33+
* Product Repository.
3334
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3435
* @SuppressWarnings(PHPMD.TooManyFields)
3536
*/
@@ -241,7 +242,7 @@ public function __construct(
241242
}
242243

243244
/**
244-
* {@inheritdoc}
245+
* @inheritdoc
245246
*/
246247
public function get($sku, $editMode = false, $storeId = null, $forceReload = false)
247248
{
@@ -271,7 +272,7 @@ public function get($sku, $editMode = false, $storeId = null, $forceReload = fal
271272
}
272273

273274
/**
274-
* {@inheritdoc}
275+
* @inheritdoc
275276
*/
276277
public function getById($productId, $editMode = false, $storeId = null, $forceReload = false)
277278
{
@@ -361,6 +362,8 @@ protected function initializeProductData(array $productData, $createNew)
361362
}
362363

363364
/**
365+
* Assign product to websites.
366+
*
364367
* @param \Magento\Catalog\Model\Product $product
365368
* @return void
366369
*/
@@ -376,6 +379,8 @@ private function assignProductToWebsites(\Magento\Catalog\Model\Product $product
376379
}
377380

378381
/**
382+
* Process new gallery media entry.
383+
*
379384
* @param ProductInterface $product
380385
* @param array $newEntry
381386
* @return $this
@@ -628,7 +633,7 @@ public function save(ProductInterface $product, $saveOptions = false)
628633
}
629634

630635
/**
631-
* {@inheritdoc}
636+
* @inheritdoc
632637
*/
633638
public function delete(ProductInterface $product)
634639
{
@@ -652,7 +657,7 @@ public function delete(ProductInterface $product)
652657
}
653658

654659
/**
655-
* {@inheritdoc}
660+
* @inheritdoc
656661
*/
657662
public function deleteById($sku)
658663
{
@@ -661,7 +666,7 @@ public function deleteById($sku)
661666
}
662667

663668
/**
664-
* {@inheritdoc}
669+
* @inheritdoc
665670
*/
666671
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)
667672
{
@@ -784,6 +789,8 @@ private function determineImageRoles(ProductInterface $product, array $images) :
784789
}
785790

786791
/**
792+
* Retrieve media gallery processor.
793+
*
787794
* @return Product\Gallery\Processor
788795
*/
789796
private function getMediaGalleryProcessor()

0 commit comments

Comments
 (0)