mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 14:02:47 +08:00
where方法支持null和notnull表达式查询 model类db方法改为protected
This commit is contained in:
@@ -617,10 +617,10 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
|
||||
/**
|
||||
* 初始化数据库对象
|
||||
* @access private
|
||||
* @access protected
|
||||
* @return object
|
||||
*/
|
||||
private static function db()
|
||||
protected static function db()
|
||||
{
|
||||
$model = get_called_class();
|
||||
$name = basename(str_replace('\\', '/', $model));
|
||||
|
||||
Reference in New Issue
Block a user