Commit Graph

74 Commits

Author SHA1 Message Date
thinkphp
721142f885 改进关联 2017-03-28 19:17:10 +08:00
thinkphp
a4646ba1a9 调整Model类setAttr方法 2017-03-28 12:47:05 +08:00
thinkphp
8d61c3b13e 增加MorphOne关联 2017-03-28 12:15:42 +08:00
thinkphp
62aa6a0f14 改进BelongsTo关联 2017-03-28 11:56:01 +08:00
thinkphp
8d843bec99 改进多态关联 2017-03-28 11:40:50 +08:00
thinkphp
82e8da05e2 改进多态关联的关联数据添加 2017-03-27 19:23:21 +08:00
yunwuxin
05be8d9664 belongsToMany增加数据同步方法 2017-03-23 17:45:15 +08:00
thinkphp
8c79c435f5 优化 2017-03-17 19:42:23 +08:00
thinkphp
1f0d3bd74a 改进 2017-03-17 19:27:45 +08:00
thinkphp
224a9d5bb3 改进中间表名读取 2017-03-17 19:03:01 +08:00
thinkphp
f4629107a2 改进多对多关联,支持中间表模型自定义 并且定义的时候不需要使用完整表名 2017-03-17 18:52:19 +08:00
thinkphp
fdd6558d69 调整关联模型的save方法返回值 2017-03-10 14:36:17 +08:00
yunwuxin
f3c4cf2b25 修正 2017-03-03 12:22:34 +08:00
yunwuxin
ff7c860a62 重载BelongsToMany的selectOrFail findOrFail方法 2017-03-03 12:04:06 +08:00
yunwuxin
14993a7d9c 重载BelongsToMany的select find paginate方法 2017-03-03 11:58:29 +08:00
yunwuxin
0952e9231f 增加Pivot对象parent属性 2017-03-02 16:06:37 +08:00
yunwuxin
6d2541585d 多对多关联设置中间表模型
增加wherePivot方法
2017-03-02 14:16:12 +08:00
thinkphp
138f48498e 改进Query类with方法 2017-02-23 18:25:20 +08:00
thinkphp
d85579faf8 改进一对一关联 2017-02-23 17:43:29 +08:00
thinkphp
46353f20a0 修正JOIN方式一对一关联预载入闭包查询 2017-02-20 17:43:15 +08:00
苗高鹏
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
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
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