/*
----------------------------------------------------------------------------
plan_solutions
----------------------------------------------------------------------------
*/
public function getPlanCategoryAndSolutions() {
$categories = $this->builderPlanCategories->orderBy('weight', 'ASC')
->getWhere(['title !=' => 'gemeinsam genutzte Sicherheitseinrichtungen'])
->getResultArray();
$solutions = $this->builderPlanSolutions->get()->getResultArray();
foreach($categories as $key => $category) {
for($i = 0; $i < count($solutions); $i++) {
if($category['pc_id'] == $solutions[$i]['category_id']) {
$categories[$key]['solutions'][] = $solutions[$i];
}
}
}
return $categories;
}