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 d1906d8 commit 43d7516Copy full SHA for 43d7516
app/code/Magento/CatalogGraphQl/Model/Category/LevelCalculator.php
@@ -48,7 +48,7 @@ public function calculate(int $rootCategoryId) : int
48
$connection = $this->resourceConnection->getConnection();
49
$select = $connection->select()
50
->from($this->resourceConnection->getTableName('catalog_category_entity'), 'level')
51
- ->where($this->resourceCategory->getLinkField() . " = ?", $rootCategoryId);
+ ->where($this->resourceCategory->getEntityIdField() . " = ?", $rootCategoryId);
52
53
return (int) $connection->fetchOne($select);
54
}
0 commit comments