lithium\data\Entity::__call PHP Method

__call() public method

Magic method that allows calling of model methods on this record instance, i.e.: $record->validates();
public __call ( string $method, array $params ) : mixed
$method string Method name caught by `__call()`.
$params array Arguments given to the above `$method` call.
return mixed
    public function __call($method, $params)
    {
        if (($model = $this->_model) && method_exists($model, '_object')) {
            array_unshift($params, $this);
            $class = $model::invokeMethod('_object');
            return call_user_func_array(array(&$class, $method), $params);
        }
        $message = "No model bound to call `{$method}`.";
        throw new BadMethodCallException($message);
    }