From ff30a2133eb31d041245df238d8e0d07892844d8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 23 May 2016 17:10:24 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 239ebb1b..f5c5b0fb 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -112,7 +112,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } if (is_null($this->autoWriteTimestamp)) { - $this->autoWriteTimestamp = $this->getConfig('auto_timestamp'); + $this->autoWriteTimestamp = $this->db()->getConfig('auto_timestamp'); } // 执行初始化操作