mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
scope方法调整
This commit is contained in:
@@ -617,8 +617,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
// 命名范围
|
||||
public static function scope($name)
|
||||
{
|
||||
$model = new static();
|
||||
return $model->$name();
|
||||
$model = new static();
|
||||
$method = 'scope' . $name;
|
||||
return $model->$method();
|
||||
}
|
||||
|
||||
// 解析模型的完整命名空间
|
||||
|
||||
Reference in New Issue
Block a user