内核更新

This commit is contained in:
2016-08-16 16:14:36 +08:00
parent ebde0fc13e
commit 81a25be484
25 changed files with 340 additions and 129 deletions

View File

@@ -4,6 +4,20 @@ namespace traits\model;
trait SoftDelete
{
/**
* 判断当前实例是否被软删除
* @access public
* @return boolean
*/
public function trashed()
{
if (!empty($this->data[static::$deleteTime])) {
return true;
}
return false;
}
/**
* 查询软删除数据
* @access public