lithium\data\model\Query::__call PHP Method

__call() public method

Gets or sets a custom query field which does not have an accessor method.
public __call ( string $method, array $params = [] ) : mixed
$method string Query part.
$params array Query parameters.
return mixed Returns the value as set in the `Query` object's constructor.
    public function __call($method, array $params = array())
    {
        if ($params) {
            $this->_config[$method] = current($params);
            return $this;
        }
        return isset($this->_config[$method]) ? $this->_config[$method] : null;
    }