diff --git a/data/Model.php b/data/Model.php index 9d09fe49ac..dd19193712 100644 --- a/data/Model.php +++ b/data/Model.php @@ -563,8 +563,7 @@ public function __call($method, $params) { if (isset($methods[$method]) && is_callable($methods[$method])) { return call_user_func_array($methods[$method], $params); } - $message = "Unhandled method call `{$method}`."; - throw new BadMethodCallException($message); + return self::__callStatic($method, $params); } /** @@ -1462,4 +1461,4 @@ public static function reset() { } } -?> \ No newline at end of file +?>