改进Model类

This commit is contained in:
thinkphp
2016-05-23 17:10:24 +08:00
parent 61397cb1e4
commit ff30a2133e

View File

@@ -112,7 +112,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
} }
if (is_null($this->autoWriteTimestamp)) { if (is_null($this->autoWriteTimestamp)) {
$this->autoWriteTimestamp = $this->getConfig('auto_timestamp'); $this->autoWriteTimestamp = $this->db()->getConfig('auto_timestamp');
} }
// 执行初始化操作 // 执行初始化操作