Skip to content

Commit

Permalink
MAGETWO-39456: [GITHUB] EAV Attribute Repository linking to catalog_e…
Browse files Browse the repository at this point in the history
…av_attribute #1370
  • Loading branch information
Serhiy Shkolyarenko committed Jul 9, 2015
1 parent d9b051e commit 7ddcf64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Eav/Model/AttributeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ public function getList($entityTypeCode, \Magento\Framework\Api\SearchCriteriaIn
'main_table.attribute_id = eav_entity_attribute.attribute_id',
[]
);
$entityType = $this->eavConfig->getEntityType($entityTypeCode);
$additionalTable = $entityType->getAdditionalAttributeTable();
$attributeCollection->join(
['additional_table' => $attributeCollection->getTable('catalog_eav_attribute')],
['additional_table' => $attributeCollection->getTable($additionalTable)],
'main_table.attribute_id = additional_table.attribute_id',
[]
);
Expand Down

0 comments on commit 7ddcf64

Please sign in to comment.