Answer the question
In order to leave comments, you need to log in
Why in yii2 dataProvider does not see NULL?
Hi why doesn't dataProvider see 'parent_id' => NULL ?
here is the complete query
$searchModel = new TicketSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$dataProvider->query->andFilterWhere(['user_id' => Yii::$app->user->id, 'parent_id' => NULL]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question