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

Commit

Permalink
GraphQL-116: Wrong category table name resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriy Nayda committed Jul 3, 2018
1 parent f947cad commit 4a4bbe2
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 4a4bbe2

Please sign in to comment.