Skip to content

Commit

Permalink
GraphQL-121: Fix regexp when filter by root category id
Browse files Browse the repository at this point in the history
-- fixes after mainline merge
  • Loading branch information
Valeriy Nayda committed Oct 3, 2018
1 parent 481c7bf commit 3b04c94
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function execute(\Iterator $iterator): array
$iterator->next();
$nextCategory = $iterator->current();
$tree[$category->getId()] = $this->categoryHydrator->hydrateCategory($category);
$tree[$category->getId()]['model'] = $category;
if ($nextCategory && (int) $nextCategory->getLevel() !== (int) $category->getLevel()) {
$tree[$category->getId()]['children'] = $this->execute($iterator);
}
Expand Down

0 comments on commit 3b04c94

Please sign in to comment.