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