В третью передаются id из первых двух, делая вложенность.
Фильтрация идет:
Код: Выделить всё
//'groups_id',
[
'attribute' => 'groups_id',
'filter' => Groups::find()->select(['name', 'id'])->indexBy('id')->column(),
'value' => 'groups.name',
],
//'lines_id',
[
'attribute' => 'lines_id',
'filter' => Lines::find()->select(['name', 'id'])->indexBy('id')->column(),
'value' => 'lines.name',
],