Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #117 from magento/GRAPHQL-116
Browse files Browse the repository at this point in the history
GraphQL-116: Wrong category table name resolving
  • Loading branch information
Valeriy Nayda authored Jul 4, 2018
2 parents d8a95c9 + 4a4bbe2 commit 4327be3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function calculate(int $rootCategoryId) : int
{
$connection = $this->resourceConnection->getConnection();
$select = $connection->select()
->from($connection->getTableName('catalog_category_entity'), 'level')
->from($this->resourceConnection->getTableName('catalog_category_entity'), 'level')
->where($this->resourceCategory->getLinkField() . " = ?", $rootCategoryId);
return (int) $connection->fetchOne($select);
}
Expand Down

0 comments on commit 4327be3

Please sign in to comment.