Category : gedmo-tree

Goal: I have a category entity. Every category can have subcategories. Now I want to get specific category nodes by id with all its parents My current solution (custom repository function): public function getChildrenHierarchyByCategoryIDs($categoryIDsArray) { $qb = $this->getNodesHierarchyQueryBuilder(); $qb->andWhere(‘node.id in (:categoryIDs)’) ->setParameter(‘categoryIDs’, $categoryIDsArray) ->orWhere(‘node.id in (:rootNodes)’) // “Workaround”, get all available root nodes (1st level ..

Read more