add filters, refactoring

This commit is contained in:
iIronside
2021-11-08 12:41:39 +03:00
parent 5be69526ac
commit c1c24fc5e4
42 changed files with 12364 additions and 443 deletions

View File

@ -40,7 +40,7 @@ class QuestionSearch extends Question
*/
public function search($params)
{
$query = Question::find();
$query = Question::find()->with(['questionnaire', 'questionType']);
// add conditions that should always apply here