Skip to content

Commit

Permalink
Added model to category data upon the hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed Nov 20, 2018
1 parent 19c1f87 commit 3694c65
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function hydrateCategory(Category $category, $basicFieldsOnly = false) :
$categoryData['id'] = $category->getId();
$categoryData['children'] = [];
$categoryData['available_sort_by'] = $category->getAvailableSortBy();
$categoryData['model'] = $category;
return $this->flattener->flatten($categoryData);
}
}

0 comments on commit 3694c65

Please sign in to comment.