改进scope动态调用

This commit is contained in:
thinkphp
2016-04-09 16:13:13 +08:00
parent e60f497bd6
commit 112a59723e

View File

@@ -673,7 +673,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
}
}
}
return $class;
return $model;
}
// 解析模型的完整命名空间
@@ -758,7 +758,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
$class = self::db();
array_unshift($args, $class);
call_user_func_array([$this, $method], $args);
return $class;
return $this;
} else {
throw new Exception(__CLASS__ . ':' . $method . ' method not exist');
}