Commit Graph

162 Commits

Author SHA1 Message Date
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
悠悠山雨
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
thinkphp
c1107d3a85 修正聚合模型 2016-12-21 11:09:45 +08:00
thinkphp
5ba052d94f 改进 2016-12-14 14:23:20 +08:00
thinkphp
78e5980451 一对一关联定义支持绑定关联模型属性到当前模型 在定义关联的时候使用bind方法 2016-12-14 13:56:19 +08:00
thinkphp
5c1c1d5f60 修正HasManyThrough关联 2016-12-13 16:50:28 +08:00
thinkphp
082b3bea81 改进一对一关联预载入查询 支持使用IN方式 一对一关联类增加setEagerlyType方法用于设置预载入查询方式 默认为JOIN方式,setEagerlyType(1) 使用IN方式
Loader类的parseName方法增加第三个参数 用于驼峰法转换是否首字母大写
2016-12-13 11:43:26 +08:00
thinkphp
308a0b9ca8 MorphMany关联增加save和saveall方法 2016-12-09 15:01:34 +08:00
thinkphp
c5dbbb45da Relation类方法调整 2016-12-09 14:52:37 +08:00
thinkphp
d49b986bb8 修正Relation一处use 2016-12-09 14:43:04 +08:00
thinkphp
74315bb894 HasOne关联支持使用hasWhere方法 2016-12-09 11:25:24 +08:00
thinkphp
0dab46114c 修正HasMany关联的has和hasWhere方法 2016-12-09 11:18:27 +08:00
thinkphp
275d04d316 修正多对多关联删除 2016-12-07 18:17:45 +08:00
thinkphp
1f53806272 注释完善 2016-12-05 12:01:35 +08:00
thinkphp
5037c64f53 改进关联模型 2016-12-05 11:55:04 +08:00
thinkphp
1d2b44adc8 修正Query的select方法的关联预载入 2016-12-05 10:55:50 +08:00
thinkphp
d11e4aea10 关联模型架构调整 2016-12-05 08:42:08 +08:00
thinkphp
b62175c34d 多态关联支持预载入查询 2016-12-01 17:19:43 +08:00
thinkphp
7ef95130c1 修正关联一处问题 2016-12-01 12:15:17 +08:00
thinkphp
77d2731892 修正关联多对多一处错误 2016-12-01 11:28:49 +08:00
thinkphp
a02c7321bb 改进关联多对多的查询 增加getModel方法 2016-12-01 10:50:56 +08:00
thinkphp
099c977b0a morphTo支持多态类型字段别名定义 2016-11-30 22:52:42 +08:00
thinkphp
7f527c256e 关联模型支持多态一对多关联 2016-11-30 19:52:58 +08:00
thinkphp
61462a628e 改进多对多查询 2016-11-30 17:11:38 +08:00
thinkphp
9b2524d3a1 聚合模型支持 field定义需要查询的字段 2016-11-09 16:25:06 +08:00
thinkphp
3935ed5915 关联定义支持在关联方法中使用field获取指定查询字段 2016-11-09 16:01:59 +08:00
thinkphp
a9782f094a 改进全局查询范围 2016-10-01 15:32:37 +08:00