From 3e1e670de267d6d64720bb1bffa1ba2bdc15f3e5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 25 Apr 2016 09:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Model=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index c668fe87..d9cb7b64 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -28,8 +28,6 @@ abstract class Model implements \JsonSerializable, \ArrayAccess protected static $table; // 回调事件 protected static $event = []; - // 数据库操作对象 - protected $db; // 数据表主键 复合主键使用数组定义 protected $pk = 'id'; @@ -89,7 +87,6 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $this->data = $data; } $this->name = basename(str_replace('\\', '/', get_class($this))); - $this->db = self::db(); $this->initialize(); $this->relation = new Relation($this);