Commit Graph

202 Commits

Author SHA1 Message Date
thinkphp
6b26b1ee25 改进Model类和Query类 Model类的name属性改为static定义 2016-05-04 16:24:51 +08:00
thinkphp
289507c0ce Model类增加toJson方法输出JSON字符串 2016-05-03 12:28:15 +08:00
thinkphp
c9a0d4dbaa 改进Model类的时间类型转换 2016-05-02 22:28:57 +08:00
thinkphp
e41120dcbf 修正模型类的saveAll方法 db助手函数增加name参数 2016-05-02 14:24:11 +08:00
thinkphp
8eec4c5eb2 query类增加insertGetId方法 模型类的save方法 新增的时候 返回自增id 2016-04-28 23:10:04 +08:00
thinkphp
00cd2e61d9 改进数据库连接的问题 2016-04-27 15:44:50 +08:00
thinkphp
6915f0249e 改进模型类对主键的自动读取 2016-04-27 12:42:57 +08:00
thinkphp
cd35b85398 改进Model类的destroy方法 2016-04-26 12:09:53 +08:00
thinkphp
61a97ab69d 修正Model类 2016-04-26 08:37:18 +08:00
thinkphp
94c1ffb986 改进Model类的toArray方法 支持获取器读取输出 2016-04-25 19:55:06 +08:00
thinkphp
e33a80a6b9 修正Model类的save方法一处bug 2016-04-25 17:43:45 +08:00
thinkphp
a9577009f8 改进Model类和Query类 name方法纳入链式操作 查询完成后释放 原来Connection类的getTableInfo方法移入 Query类 2016-04-25 13:35:46 +08:00
thinkphp
3e1e670de2 修正Model类 2016-04-25 09:57:39 +08:00
thinkphp
56f102c893 model类增加db属性 可以用于模型内部进行查询操作调用 $this->db 2016-04-24 23:02:29 +08:00
thinkphp
f40fb831f4 增加Merge模型类扩展 2016-04-24 14:29:33 +08:00
thinkphp
265a80905d 修正BELONGS_TO关联查询 2016-04-23 20:26:26 +08:00
thinkphp
c3804ffcb3 修正Model类 2016-04-23 12:43:26 +08:00
thinkphp
2fb064cb37 Connection类getAttribute方法 改成 getConfig 增加setConfig方法 Model类类型转换支持格式定义 2016-04-23 11:17:53 +08:00
thinkphp
faff79e2ac 改进query类的value和column方法的缓存问题 2016-04-21 18:04:57 +08:00
thinkphp
f39c6627da 改进Model类的 has和hasWhere方法 2016-04-21 17:56:20 +08:00
thinkphp
b89991dc41 Model类增加has和hasWhere方法用于根据关联表的条件来查询当前模型数据 2016-04-21 14:44:14 +08:00
thinkphp
a8490a7735 Model类属性tableName改为table Connection类getTableName 更改为 getTable 2016-04-20 22:07:31 +08:00
thinkphp
a5505c000c 改进Model类的toArray方法 支持关联模型输出数组 2016-04-20 21:33:24 +08:00
thinkphp
02934b0d27 改进关联模型的关联键值和表名读取 2016-04-20 15:31:25 +08:00
thinkphp
c792be0358 改进Model类的db方法 2016-04-20 10:10:20 +08:00
thinkphp
514dc8c300 改进getData方法支持获取某个字段值 2016-04-20 08:44:01 +08:00
thinkphp
d621ad1468 Model类增加getData方法 2016-04-20 08:38:15 +08:00
thinkphp
b599829e75 改进Relation类 支持关联的新增 2016-04-20 08:33:23 +08:00
thinkphp
aa585a60b2 Model类field方法更名为allowField,增加saveAll方法批量新增数据
改进一对一的关联新增
2016-04-19 22:16:28 +08:00
thinkphp
1e1d2ab951 修正Query类的builder方法 2016-04-19 17:51:45 +08:00
thinkphp
677a73938c 改进 2016-04-19 17:06:34 +08:00
thinkphp
114aa0c2bf 改进Model类 2016-04-19 17:00:41 +08:00
thinkphp
6152a41665 Model类添加field方法 用于设置允许写入的字段 改进Query类的field方法 2016-04-18 22:05:48 +08:00
thinkphp
3f7113558c 改进多对多关联查询及预载入 2016-04-17 22:34:12 +08:00
thinkphp
e5e358303b 注释修改 2016-04-17 13:07:00 +08:00
thinkphp
d8ac3574f5 关联模型拆分 2016-04-17 13:03:47 +08:00
thinkphp
c9e23e61b6 删除Query类的scope方法 2016-04-16 21:51:02 +08:00
thinkphp
6fa007dc77 完善数据库类 2016-04-16 15:51:16 +08:00
thinkphp
6886c03657 数据库重构 2016-04-16 11:18:35 +08:00
thinkphp
da90d38b9a 修正关联查询预载入混合使用的问题 对关联查询使用闭包搜索的完善 2016-04-13 16:15:57 +08:00
thinkphp
aa5d1c817b 注释改进 2016-04-12 23:01:15 +08:00
thinkphp
81a74f90ea 改进with方法 2016-04-12 22:20:55 +08:00
thinkphp
d8e3a35895 改进一堆多关联 2016-04-12 20:46:24 +08:00
thinkphp
3667b2770e Model类兼容php5.4处理 2016-04-12 18:34:44 +08:00
thinkphp
8a564092e4 改进Model预载入的数据判断 2016-04-12 18:26:49 +08:00
thinkphp
b2f0586329 改进Model类 2016-04-12 18:15:32 +08:00
thinkphp
bfa6c185f3 修正Model类关联预载入 2016-04-12 17:38:00 +08:00
thinkphp
f571555320 修正预载入方法 并支持 find和select 2016-04-12 17:17:02 +08:00
thinkphp
c5cf46c392 改进HAS ONE BELONGS_TO 关联预载入查询 2016-04-12 15:24:09 +08:00
thinkphp
880562b42c 改进预载入查询 2016-04-12 08:33:20 +08:00