Hey, it’s me again
I have gone so far, that my relationship problem is solved (see here). Now i managed to get the model relation searchable in my grid view. This video helped me with it.
But i can’t how to make my GridView header sortable? It still sorts after the category_id when I’m clicking on it.
Tried with this:
$dataProvider->sort->attributes['category'] = [
'asc' => ['categories.description' => SORT_ASC],
'desc' => ['categories.description' => SORT_DESC],
];
Thanks’ for any tip