Commit Graph

35 Commits

Author SHA1 Message Date
Gaozhen Ying
616f7b73ba 新增SoftDelete单元测试 2017-09-28 11:41:18 +08:00
thinkphp
26482e4ed0 改进 2017-09-05 10:28:21 +08:00
thinkphp
bb3fb74bb7 改进软删除的关联删除 2017-09-05 10:27:28 +08:00
thinkphp
79b5d43023 改进数据更新检查 2017-04-13 16:21:45 +08:00
thinkphp
3daaf9886a 改进模型对象直接缓存的问题 2017-04-13 11:44:42 +08:00
thinkphp
f1366f7833 修正软删除 2017-04-07 17:47:10 +08:00
thinkphp
6e72edd354 软删除 2017-03-13 22:46:11 +08:00
thinkphp
a7cdc2b126 改进软删除操作 2017-03-13 16:47:50 +08:00
thinkphp
2c0ee2f616 改进软删除 2017-02-09 19:12:45 +08:00
thinkphp
002cd48d54 改进软删除的兼容性 2017-02-06 14:07:12 +08:00
thinkphp
44654c76ef 修正软数据的delete(true)用法 2017-01-22 20:46:34 +08:00
thinkphp
56c036635c 注释改进 2016-12-13 18:05:41 +08:00
thinkphp
538f675cca 改进软删除destroy和restore方法 2016-12-13 17:58:47 +08:00
thinkphp
3ea09822e0 改进软删除 2016-11-11 11:37:15 +08:00
thinkphp
6f51dd0e47 修正软删除的withTrashed方法 Query类增加removeWhereField方法 2016-11-10 11:36:32 +08:00
thinkphp
ec59e7f8af 修正软删除onlyTrashed方法 2016-11-09 14:57:05 +08:00
thinkphp
535e17b1a0 修正软删除withTrashed方法 2016-10-25 20:42:21 +08:00
thinkphp
76b7f02ea4 改进join方法和alias方法的解析 改进软删除的base方法 2016-10-06 19:48:11 +08:00
thinkphp
9d99b7d55c 修正注释 2016-09-30 21:34:06 +08:00
thinkphp
4695dd45d4 修正软删除方法 改进模板session和cookie变量获取 2016-09-30 21:32:23 +08:00
thinkphp
a0b1a75d92 Model类的useGlobalScope 属性改为动态属性 全局查询范围方法base改为动态方法 软删除属性 deleteTime属性改为动态属性,并且没有定义的话默认为delete_time 取消tableAlias属性定义 直接可以在deleteTime属性里面定义别名.字段名 2016-09-30 18:14:57 +08:00
thinkphp
c51416c7d4 改进 2016-09-30 14:39:31 +08:00
thinkphp
4a2eb296b2 改进软删除的base方法 增加tableAlias静态属性定义当前模型的表别名 2016-09-30 14:37:13 +08:00
thinkphp
54224aff6b 软删除的查询加上表名 2016-09-28 18:41:40 +08:00
thinkphp
3e79ff0c28 软删除restore方法支持传入条件 2016-09-13 22:02:26 +08:00
thinkphp
acbd5b97fe 改进软删除的destory方法 2016-09-13 11:02:05 +08:00
thinkphp
6622c9698d 改进 2016-08-20 22:04:39 +08:00
thinkphp
2b4a15ed49 改进onlyTrashed方法 2016-08-20 21:27:07 +08:00
thinkphp
b627a645ca 修正softDelete 2016-08-20 21:24:33 +08:00
thinkphp
a30b5d7f01 软删除的删除字段默认值更改为null 兼容更多的时间字段类型 2016-08-20 14:05:19 +08:00
thinkphp
f99a0dd536 SoftDelete trait 增加trashed方法用于判断当前数据是否已经被软删除 2016-08-13 21:55:54 +08:00
thinkphp
de4d8253da softDelete trait增加destroy方法 并增加第二个参数 用于真实删除数据 2016-08-06 14:55:39 +08:00
thinkphp
10aae58d82 改进软删除trait Model类的base方法改为静态定义 全局多次调用有效 2016-08-06 14:49:28 +08:00
thinkphp
fb66950ded 增加onlyTrashed方法 2016-08-06 11:53:07 +08:00
thinkphp
9441d10d67 软删除功能作为trait扩展引入 2016-08-06 11:47:15 +08:00