C
C
Crash2017-09-14 11:13:30
JavaScript
Crash, 2017-09-14 11:13:30

How to do a filter search in GridView (Yii2) if the models are connected via an intermediate table?

Here is such a filter, knowledgeable people will understand what it is about:
8652ce706f1c483e836cdaa7e6de37c6.png
But the problem is that the connection with the project table goes through an intermediate table (many-to-many relationship).
How to implement search in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-09-14
@Bandicoot

use joinWith

M
Maxim Timofeev, 2017-09-14
@webinar

Guide with examples:
www.yiiframework.com/wiki/780

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question