修正Model类的delete方法

This commit is contained in:
thinkphp
2016-08-06 18:48:15 +08:00
parent 9371bfc3eb
commit 736167b31a

View File

@@ -783,10 +783,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
/** /**
* 删除当前的记录 * 删除当前的记录
* @access public * @access public
* @param bool $force 是否强制删除
* @return integer * @return integer
*/ */
public function delete($force = false) public function delete()
{ {
if (false === $this->trigger('before_delete', $this)) { if (false === $this->trigger('before_delete', $this)) {
return false; return false;