We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f947cad commit 4a4bbe2Copy full SHA for 4a4bbe2
app/code/Magento/CatalogGraphQl/Model/Category/LevelCalculator.php
@@ -37,7 +37,7 @@ public function calculate(int $rootCategoryId) : int
37
{
38
$connection = $this->resourceConnection->getConnection();
39
$select = $connection->select()
40
- ->from($connection->getTableName('catalog_category_entity'), 'level')
+ ->from($this->resourceConnection->getTableName('catalog_category_entity'), 'level')
41
->where($this->resourceCategory->getLinkField() . " = ?", $rootCategoryId);
42
return (int) $connection->fetchOne($select);
43
}
0 commit comments