src/ORM/DataList.php
public function where($filter)
    {
        return $this->alterDataQuery(function (DataQuery $query) use ($filter) {
            $query->where($filter);
        });
    }
public function where($filter)
    {
        return $this->alterDataQuery(function (DataQuery $query) use ($filter) {
            $query->where($filter);
        });
    }
public function where ( $ filter ) { return $ this -> alterDataQuery ( function ( DataQuery $ query ) use ( $ filter ) { $ query -> where ( $ filter ) ; } ) ; }
Return a new DataList instance with a WHERE clause added to this list's query.

Supports parameterised queries.
See SQLSelect::addWhere() for syntax examples, although DataList
won't expand multiple method arguments as SQLSelect does.

@param string|array|SQLConditionGroup $filter Predicate(s) to set, as escaped SQL statements or
paramaterised queries
@return static
Return a new DataList instance with a WHERE clause added to this list s query .