src/ORM/DataList.php
public function addFilter($filterArray)
    {
        $list = $this;

        foreach ($filterArray as $expression => $value) {
            $filter = $this->createSearchFilter($expression, $value);
            $list = $list->alterDataQuery([$filter, 'apply']);
        }

        return $list;
    }
public function addFilter($filterArray)
    {
        $list = $this;

        foreach ($filterArray as $expression => $value) {
            $filter = $this->createSearchFilter($expression, $value);
            $list = $list->alterDataQuery([$filter, 'apply']);
        }

        return $list;
    }
public function addFilter ( $ filterArray ) { $ list = $ this ; foreach ( $ filterArray as $ expression => $ value ) { $ filter = $ this -> createSearchFilter ( $ expression , $ value ) ; $ list = $ list -> alterDataQuery ( [ $ filter , 'apply' ] ) ; } return $ list ; }
Return a new instance of the list with an added filter

@param array $filterArray
@return $this
Return a new instance of the list with an added filter