25 ->addAttributeToSelect(
'url_path')
26 ->addAttributeToSelect(
'url_key')
27 ->addAttributeToSelect(
'name')
38 $cacheKey =
$category->getId() .
'_' . (int)$recursive;
39 if (!isset($this->childrenIds[$cacheKey])) {
42 ->from(
$category->getResource()->getEntityTable(),
'entity_id')
43 ->where(
$connection->quoteIdentifier(
'path') .
' LIKE :c_path');
44 $bind = [
'c_path' =>
$category->getPath() .
'/%'];
47 $bind[
'c_level'] =
$category->getLevel() + 1;
51 return $this->childrenIds[$cacheKey];
getChildrenIds(Category $category, $recursive=false)
getChildren(Category $category, $recursive=false)