Yii 2.0 andFilterWhere null auto ignore

In Yii 2.0's search() function, if try use andFilterWhere and null together, the generated SQL will auto skip the null one, after recheck document found: andFilterWhere will auto skip all empty item include null. So if need use null here, just try with andWhere.

 

// Wrong and Ignore
$query->andFilterWhere(['like', 'jl_title', null])

// Correct
$query->andWhere(['like', 'jl_title', null])