Commit Graph

187 Commits

Author SHA1 Message Date
苗高鹏
21834f797d Merge branch 'master' into bugfix3 2017-02-13 14:53:24 +08:00
thinkphp
532173e010 优化HasOne的has方法 2017-02-09 14:42:39 +08:00
thinkphp
a01c43472d 改进Model类的has和hasWhere方法 2017-02-09 14:26:36 +08:00
thinkphp
2639db4f9e 修正BelongsTo关联 2017-02-09 12:21:50 +08:00
thinkphp
fcfe91a97d 修正hasMany关联的has方法 2017-02-04 20:08:30 +08:00
thinkphp
ca228203c9 改进多对多的attach方法的返回值 2017-01-31 16:50:38 +08:00
thinkphp
390aeb3f01 Merge branch 'master' of https://git.topthink.com/topteam/framework 2017-01-23 13:58:41 +08:00
thinkphp
c270a32b9f 调整 2017-01-23 13:58:30 +08:00
yunwuxin
6078d0ea39 模型注释 2017-01-23 13:46:17 +08:00
yunwuxin
8311a4e39b 改进 2017-01-23 13:02:34 +08:00
thinkphp
c45229c762 改进Merge类save方法 2017-01-23 11:06:07 +08:00
thinkphp
7348729b40 Query类的hidden和visible方法取消 改进Model类的hidden和visible方法支持操作关联属性 2017-01-22 23:21:46 +08:00
thinkphp
d7dda49cbf 调整注释 2017-01-22 18:07:13 +08:00
thinkphp
d96ec0c350 添加方法声明注释 2017-01-22 18:04:36 +08:00
thinkphp
e2e217f1d6 改进一对一关联预载入 2017-01-22 17:36:56 +08:00
thinkphp
6f02e4b127 关联预载入方法调整 取消class参数 关联的数据集查询根据模型的数据集返回类型设定 2017-01-22 12:42:24 +08:00
thinkphp
a7a0051a78 改进关联属性 2017-01-21 23:01:31 +08:00
thinkphp
0944d0fe0e 预载入关联属性的默认规则 2017-01-21 17:27:17 +08:00
thinkphp
6afb6e981c Model类增加一对一关联自动写入机制 2017-01-19 12:35:20 +08:00
thinkphp
cffb772743 改进 2017-01-18 13:58:27 +08:00
thinkphp
4a7e4d5d28 一对一预载入 In查询方式兼容withField方法 2017-01-18 13:56:41 +08:00
thinkphp
4c2665b9f9 一对一预载入查询默认改为IN查询方式 2017-01-18 13:49:50 +08:00
thinkphp
be6d528f68 collection助手函数返回think\Collection对象 2017-01-18 10:25:10 +08:00
thinkphp
a1cb6ea4ca 修正一处变量错误 2017-01-17 13:45:51 +08:00
thinkphp
ed3becf64f 改进HasMany和OneToOne 2017-01-17 10:53:14 +08:00
thinkphp
8b962ae5c5 一对一关联类调整 2017-01-16 23:09:26 +08:00
thinkphp
1568af03d8 取消关联类无效的alias参数 仅morphTo关联保留 用于设置多态别名 2017-01-16 23:03:12 +08:00
thinkphp
ff4be602c0 调整HasMany类的has和hasWhere方法,取消第一个参数 2017-01-16 17:36:15 +08:00
thinkphp
47a869f3af Query类relation支持嵌套关联 2017-01-16 15:52:21 +08:00
thinkphp
771c0a90be 调整 2017-01-16 11:34:53 +08:00
thinkphp
f923c9dba5 独立出think\model\Collection类 用于模型数据集 2017-01-16 11:16:15 +08:00
thinkphp
d5d5314f2e Query类的relation方法和with方法一样支持使用闭包进行自定义关联查询 2017-01-16 10:31:03 +08:00
hooklife
5c4df0ce08 修改架构函数为 构造方法 2017-01-10 15:48:42 +08:00
悠悠山雨
4afee9c8b8 Update BelongsToMany.php
给$data默认值NULL,用于删除以关联外键为条件的中间表
2017-01-06 15:10:59 +08:00
thinkphp
d6b9e2f628 2017更新 2017-01-01 13:00:23 +08:00
thinkphp
293dce8639 改进 2016-12-28 14:58:43 +08:00
thinkphp
b0237b766d 改进关联定义中包含查询条件后重复执行的问题 2016-12-28 11:37:50 +08:00
thinkphp
a74b842d71 改进关联统计 2016-12-26 15:52:53 +08:00
thinkphp
43b364e286 规范代码 2016-12-24 21:37:05 +08:00
thinkphp
c33cc2991b 增加时间戳自动写入的判断 2016-12-23 11:37:34 +08:00
thinkphp
4b6a39f6d3 修正 2016-12-22 23:57:47 +08:00
thinkphp
6433f8fdca 改进 2016-12-22 23:40:15 +08:00
thinkphp
340abd05e5 改进BelongsToMany类的saveall方法 增加第三个参数 用于指定额外参数是否一致 2016-12-22 18:12:33 +08:00
thinkphp
c2fff2b45d BelongsToMany类的attach方法改进 支持批量写入 2016-12-22 18:06:01 +08:00
thinkphp
3a78c93d11 改进Route类setRule方法 修正BelongsToMany类的attach方法 2016-12-22 17:55:35 +08:00
thinkphp
91e089b7e7 完善关联统计 避免一对一关联报错 2016-12-22 13:52:41 +08:00
thinkphp
bde2607442 Revert "关联预载入查询支持关联统计"
This reverts commit 9657ee01b1.
2016-12-22 13:30:43 +08:00
thinkphp
9657ee01b1 关联预载入查询支持关联统计 2016-12-22 12:52:13 +08:00
thinkphp
cd57d97f36 增加关联统计功能 2016-12-22 12:22:44 +08:00
thinkphp
f417aa6662 修正聚合模型的delete方法 2016-12-21 17:18:04 +08:00