yii\db\QueryTrait::andFilterWhere PHP 메소드

andFilterWhere() 공개 메소드

The new condition and the existing one will be joined using the 'AND' operator. This method is similar to QueryTrait::andWhere. The main difference is that this method will remove [[isEmpty()|empty query operands]]. As a result, this method is best suited for building query conditions based on filter values entered by users.
또한 보기: filterWhere()
또한 보기: orFilterWhere()
public andFilterWhere ( array $condition )
$condition array the new WHERE condition. Please refer to [[where()]] on how to specify this parameter.
    public function andFilterWhere(array $condition)
    {
        $condition = $this->filterCondition($condition);
        if ($condition !== []) {
            $this->andWhere($condition);
        }
        return $this;
    }