Skip to content

Commit d6a86cb

Browse files
author
Eric Bohanon
committed
MAGETWO-83872: Write metadata service
1 parent 9973774 commit d6a86cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Eav/Model/TypeLocator/ServiceClassLocator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ public function __construct(
6262
public function getType($attributeCode, $entityType)
6363
{
6464
$entityCode = $this->serviceTypeMap->getEntityType($entityType);
65-
if (!$entityType) {
65+
if (!$entityCode) {
6666
return TypeProcessor::NORMALIZED_ANY_TYPE;
6767
}
6868

69-
$type = $this->complexTypeLocator->getType($attributeCode, $map[$entityType]);
69+
$type = $this->complexTypeLocator->getType($attributeCode, $entityCode);
7070
if ($type === TypeProcessor::NORMALIZED_ANY_TYPE) {
71-
$type = $this->simpleTypeLocator->getType($attributeCode, $map[$entityType]);
71+
$type = $this->simpleTypeLocator->getType($attributeCode, $entityCode);
7272
}
7373

7474
return $type;
@@ -79,6 +79,6 @@ public function getType($attributeCode, $entityType)
7979
*/
8080
public function getAllServiceDataInterfaces()
8181
{
82-
$this->complexTypeLocator->getDataTypes();
82+
return $this->complexTypeLocator->getDataTypes();
8383
}
8484
}

0 commit comments

Comments
 (0)