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.
2 parents 98afc99 + 43d7516 commit b04b5a7Copy full SHA for b04b5a7
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