1

I am trying to prepare a dynamic flexible query to fetch a category including its all sub/nested categories. Hybris keeps category relation in CategoryCategoryRelation and if I join the table itself it doesn't give a category if it doesn't have any subcategory.

Thanks

Winston
  • 1,800
  • 2
  • 20
  • 30
  • 1
    Please add your query here. Categorymodel already has a method `getAllSubcategories` which fetch all its subcategories. It's handled through dynamic attribute which internally calls `getAllSubcategoriesForCategory` method of `DefaultcategoryService`. Please check if you can use the same. – HybrisHelp Mar 09 '20 at 09:03

0 Answers0