Commit Graph

3572 Commits

Author SHA1 Message Date
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
a13eb10116 改进写入数据的自动参数绑定 2017-01-21 14:20:26 +08:00
thinkphp
776bf4805e 改进数据集对象的返回 由Query类select方法返回数据集对象 Connection类getResult方法不再进行数据集对象转换 2017-01-21 12:36:50 +08:00
thinkphp
7e0282081d 改进Model类的allowField方法支持传入逗号分隔字符串 2017-01-20 21:36:52 +08:00
thinkphp
48b856a7f1 改进Model类的delete方法 支持没有主键情况下的删除操作 2017-01-20 21:26:51 +08:00
thinkphp
249c5e62e4 改进parseOrder对rand的支持 2017-01-20 20:27:55 +08:00
thinkphp
069d63a2fc 单元测试 2017-01-20 13:28:57 +08:00
thinkphp
bbfc33f334 修正单元测试 2017-01-20 13:20:47 +08:00
thinkphp
5981a54c40 改进模型类的allowField方法 2017-01-20 12:37:51 +08:00
thinkphp
35ae8decf7 修正验证类的布尔值规则 2017-01-20 12:37:25 +08:00
thinkphp
e1b35abd51 改进count查询对group的支持 2017-01-19 18:52:26 +08:00
thinkphp
ecd0ff3536 完善Model的自动关联更新 2017-01-19 14:18:26 +08:00
thinkphp
55bcfca1bd Model类增加一对一关联自动删除功能 2017-01-19 13:50:57 +08:00
thinkphp
542b432fa6 支持聚合更新 2017-01-19 12:57:13 +08:00
thinkphp
5d4323feee Merge branch 'master' of https://github.com/top-think/framework 2017-01-19 12:38:43 +08:00
thinkphp
6afb6e981c Model类增加一对一关联自动写入机制 2017-01-19 12:35:20 +08:00
thinkphp
f22e317b9f Merge branch 'master' of https://github.com/top-think/framework 2017-01-18 22:01:55 +08:00
thinkphp
da2421113b 变量名调整 2017-01-18 22:01:28 +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
fea1b59582 改进cookie助手函数 2017-01-17 11:42:12 +08:00
thinkphp
a3fd00eb35 修正一处错误 2017-01-17 10:55:26 +08:00
thinkphp
ed3becf64f 改进HasMany和OneToOne 2017-01-17 10:53:14 +08:00
thinkphp
ebfcbac863 改进Model类 2017-01-17 08:19:20 +08:00
thinkphp
8b962ae5c5 一对一关联类调整 2017-01-16 23:09:26 +08:00
thinkphp
d68115c946 增加collection助手函数 快速转换数组为数据集对象 2017-01-16 23:03:23 +08:00
thinkphp
1568af03d8 取消关联类无效的alias参数 仅morphTo关联保留 用于设置多态别名 2017-01-16 23:03:12 +08:00
thinkphp
908de8f4ee Merge branch 'master' of https://github.com/top-think/framework 2017-01-16 17:37:04 +08:00
thinkphp
ff4be602c0 调整HasMany类的has和hasWhere方法,取消第一个参数 2017-01-16 17:36:15 +08:00
yunwuxin
0877798447 修正cx标签 2017-01-16 17:30:14 +08:00
thinkphp
04c81ca6b5 改进Model类的has方法第二个参数支持使用数组或者闭包进行自定义条件查询 2017-01-16 17:03:53 +08:00
thinkphp
2db77f1aad 改进关联嵌套 2017-01-16 15:55:05 +08:00
thinkphp
47a869f3af Query类relation支持嵌套关联 2017-01-16 15:52:21 +08:00
yunwuxin
00136a3f4b 注释调整 2017-01-16 15:17:50 +08:00
yunwuxin
b4290f0d01 完善分页 2017-01-16 14:41:39 +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
f49ebcdc1d 命名规范调整loadRelation => load_relation 2017-01-16 11:02:49 +08:00
ThinkPHP
0c528dcd7a Merge pull request #446 from top-think/analysis-XVDRn3
Apply fixes from StyleCI
2017-01-15 20:52:24 -06:00
ThinkPHP
0055484752 Apply fixes from StyleCI 2017-01-16 02:31:28 +00:00
thinkphp
d5d5314f2e Query类的relation方法和with方法一样支持使用闭包进行自定义关联查询 2017-01-16 10:31:03 +08:00
thinkphp
ba7232b678 增加laodRelation助手函数 用于数据集的延迟预载入关联查询 2017-01-15 18:50:51 +08:00
thinkphp
5c5e720b85 Merge branch 'master' of https://github.com/top-think/framework 2017-01-15 10:39:36 +08:00
thinkphp
84a832b3ec 增加关联延迟预载入(仅针对数据集对象) 2017-01-14 10:46:21 +08:00
thinkphp
1e8e169b0a 改进where方法的相同字段多次查询 2017-01-13 17:53:11 +08:00