This commit is contained in:
thinkphp
2017-06-07 13:00:37 +08:00
parent 46589692eb
commit 8a5ad4b79b

View File

@@ -327,10 +327,11 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
/** /**
* 是否需要自动写入时间字段 * 是否需要自动写入时间字段
* @access public * @access public
* @param bool $auto * @param bool $auto
* @return $this * @return $this
*/ */
public function autoWriteTimestamp($auto){ public function isAutoWriteTimestamp($auto)
{
$this->autoWriteTimestamp = $auto; $this->autoWriteTimestamp = $auto;
return $this; return $this;
} }