带filter的操作内部会过滤掉为空的条件 null '' 空数组 比如查询条件: orFilterWhere([ 'status' => 0, 'name' => '', 'age' => null, 'sex' => [] ]) 最后去掉为空的组成查询条件,依据规则就剩下status = 0这个条件了
带
filter
的操作内部会过滤掉为空的条件
null
''
空数组
比如查询条件:
最后去掉为
空
的组成查询条件,依据规则就剩下status = 0
这个条件了