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