Skip to content
14 changes: 7 additions & 7 deletions app/code/Magento/Eav/Model/AttributeManagement.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2014 Adobe
* All Rights Reserved.
*/

namespace Magento\Eav\Model;
Expand Down Expand Up @@ -92,7 +92,7 @@ public function __construct(
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function assign($entityTypeCode, $attributeSetId, $attributeGroupId, $attributeCode, $sortOrder)
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public function assign($entityTypeCode, $attributeSetId, $attributeGroupId, $att
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function unassign($attributeSetId, $attributeCode)
{
Expand Down Expand Up @@ -171,13 +171,13 @@ public function unassign($attributeSetId, $attributeCode)
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getAttributes($entityType, $attributeSetId)
public function getAttributes($entityTypeCode, $attributeSetId)
{
/** @var \Magento\Eav\Api\Data\AttributeSetInterface $attributeSet */
$attributeSet = $this->setRepository->get($attributeSetId);
$requiredEntityTypeId = $this->eavConfig->getEntityType($entityType)->getId();
$requiredEntityTypeId = $this->eavConfig->getEntityType($entityTypeCode)->getId();
if (!$attributeSet->getAttributeSetId() || $attributeSet->getEntityTypeId() != $requiredEntityTypeId) {
throw NoSuchEntityException::singleField('attributeSetId', $attributeSetId);
}
Expand Down