From 114aa0c2bffc61a4a8fa136837d8bd46d974d849 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 19 Apr 2016 17:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=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 43def959..4aa4c4e5 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -853,10 +853,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess if (!isset(self::$links[$model])) { self::$links[$model] = Db::connect(static::$connection); - } - if (isset(static::$tableName)) { self::$links[$model]->setTable(static::$tableName); - } else { $name = basename(str_replace('\\', '/', $model)); self::$links[$model]->name($name); }