public static useGlobalScope ( boolean $use ) : |
||
$use | boolean | 是否启用全局查询范围 |
return |
public static function useGlobalScope($use)
{
$model = new static();
$model->useGlobalScope = $use;
return $model;
}