src/ORM/Filters/ComparisonFilter.php
protected function applyOne(DataQuery $query)
    {
        $this->model = $query->applyRelation($this->relation);

        $predicate = sprintf("%s %s ?", $this->getDbName(), $this->getOperator());
        $clause = [$predicate => $this->getDbFormattedValue()];

        return $this->aggregate ?
            $this->applyAggregate($query, $clause) :
            $query->where($clause);
    }
protected function applyOne(DataQuery $query)
    {
        $this->model = $query->applyRelation($this->relation);

        $predicate = sprintf("%s %s ?", $this->getDbName(), $this->getOperator());
        $clause = [$predicate => $this->getDbFormattedValue()];

        return $this->aggregate ?
            $this->applyAggregate($query, $clause) :
            $query->where($clause);
    }
protected function applyOne ( DataQuery $ query ) { $ this -> model = $ query -> applyRelation ( $ this -> relation ) ; $ predicate = sprintf ( "%s %s ?" , $ this -> getDbName ( ) , $ this -> getOperator ( ) ) ; $ clause = [ $ predicate => $ this -> getDbFormattedValue ( ) ] ; return $ this -> aggregate ? $ this -> applyAggregate ( $ query , $ clause ) : $ query -> where ( $ clause ) ; }
Applies a comparison filter to the query
Handles SQL escaping for both numeric and string values

@param DataQuery $query
@return DataQuery
Applies a comparison filter to the query Handles SQL escaping for both numeric and string values