Skip to content

Commit

Permalink
ENGCOM-2318: GraphQL-116: Wrong category table name resolving #119
Browse files Browse the repository at this point in the history
 - Merge Pull Request magento/graphql-ce#119 from magento/graphql-ce:GRAPHQL-116
 - Merged commits:
   1. 4a4bbe2
  • Loading branch information
magento-engcom-team committed Jul 13, 2018
2 parents ce5eacd + 4a4bbe2 commit 13d7bde
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 13d7bde

Please sign in to comment.