public function addCriteria(array $criteria)
    {
        foreach ($criteria as $key => $value) {
            $this->attr($key)->matches($value);
        }

        return $this;
    }
public function addCriteria(array $criteria)
    {
        foreach ($criteria as $key => $value) {
            $this->attr($key)->matches($value);
        }

        return $this;
    }
public function addCriteria ( array $ criteria ) { foreach ( $ criteria as $ key => $ value ) { $ this -> attr ( $ key ) -> matches ( $ value ) ; } return $ this ; }
Add an array of criteria to the expression as AND clauses.

@see QueryBuilder::addCriteria()

@param array $criteria values indexed by property name

@return QueryBuilder|$this
Add an array of criteria to the expression as AND clauses .