Commit Graph

149 Commits

Author SHA1 Message Date
thinkphp
a8490a7735 Model类属性tableName改为table Connection类getTableName 更改为 getTable 2016-04-20 22:07:31 +08:00
thinkphp
87a128f231 改进Query类的order方法 2016-04-20 18:16:55 +08:00
thinkphp
02934b0d27 改进关联模型的关联键值和表名读取 2016-04-20 15:31:25 +08:00
thinkphp
b599829e75 改进Relation类 支持关联的新增 2016-04-20 08:33:23 +08:00
thinkphp
1e1d2ab951 修正Query类的builder方法 2016-04-19 17:51:45 +08:00
thinkphp
1f0892f93c 改进chunk方法 支持在调用chunk之前使用连贯操作方法 2016-04-19 13:25:31 +08:00
thinkphp
7d8ea08194 Query类增加chunk方法 分批处理数据 2016-04-19 12:46:24 +08:00
thinkphp
6152a41665 Model类添加field方法 用于设置允许写入的字段 改进Query类的field方法 2016-04-18 22:05:48 +08:00
thinkphp
2e6ba63ed9 改进where方法传空值 2016-04-18 17:14:22 +08:00
thinkphp
455a18e85a 修正Query类的cache方法 2016-04-18 12:11:41 +08:00
thinkphp
2a09d8d8db 修正 2016-04-18 10:58:20 +08:00
thinkphp
3f7113558c 改进多对多关联查询及预载入 2016-04-17 22:34:12 +08:00
thinkphp
d8ac3574f5 关联模型拆分 2016-04-17 13:03:47 +08:00
thinkphp
2bc267a6aa insert和update方法支持使用field方法过滤写入字段 2016-04-17 09:44:40 +08:00
thinkphp
57f855e01d 修正builder 2016-04-17 09:32:07 +08:00
thinkphp
e82761c582 注释修改 2016-04-16 23:04:02 +08:00
thinkphp
c9e23e61b6 删除Query类的scope方法 2016-04-16 21:51:02 +08:00
thinkphp
1487ee6eac query类查询方法支持闭包 2016-04-16 16:56:42 +08:00
thinkphp
b97df6289e 改进insertall方法 2016-04-16 16:42:10 +08:00
thinkphp
09d5fb734c 修正insertall方法的问题 2016-04-16 16:07:44 +08:00
thinkphp
483c824df9 修正Query类 2016-04-16 15:58:42 +08:00
thinkphp
6fa007dc77 完善数据库类 2016-04-16 15:51:16 +08:00
thinkphp
c62bc8bca2 完善数据库驱动 2016-04-16 15:07:29 +08:00
thinkphp
6aa75b5d8a 改进Connection类 2016-04-16 14:50:48 +08:00
thinkphp
f5ef285cb2 改进数据库类 2016-04-16 14:17:56 +08:00
thinkphp
6886c03657 数据库重构 2016-04-16 11:18:35 +08:00
thinkphp
7b57db8ab1 删除调试代码 2016-04-13 16:38:10 +08:00
thinkphp
da90d38b9a 修正关联查询预载入混合使用的问题 对关联查询使用闭包搜索的完善 2016-04-13 16:15:57 +08:00
thinkphp
aa5d1c817b 注释改进 2016-04-12 23:01:15 +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
thinkphp
ec03eda952 修正db类setField方法 2016-04-11 15:16:15 +08:00
thinkphp
7ee775095d 修正Model类的delete方法 2016-04-11 15:14:00 +08:00
thinkphp
32ba255de9 改进where对空条件的判断 2016-04-10 23:12:34 +08:00
thinkphp
e39b72c21c 修正driver类 Model类get和all方法支持闭包查询 2016-04-10 16:17:06 +08:00
thinkphp
4aa86efc5a Db类增加批处理执行sql操作方法 2016-04-10 15:45:00 +08:00
thinkphp
f97626f6a2 修正 2016-04-10 14:35:11 +08:00
thinkphp
42073f04f9 Db类增加 transaction 方法用于执行某组数据事务操作 2016-04-10 14:30:26 +08:00
thinkphp
9ac9d43a46 Db类增加listen方法 用于监听SQL执行操作 改进Model类事件 2016-04-10 14:17:54 +08:00
thinkphp
34538c2b02 改进关联查询方法relation 2016-04-10 11:01:16 +08:00
thinkphp
8b747500b3 注释完善 2016-04-10 10:37:06 +08:00
thinkphp
6c406e208e Model类支持关联查询预载入功能 增加__toString方法 Db类增加relation和with方法 修正Model一处BUG 2016-04-10 10:00:46 +08:00
thinkphp
2a9f1f0f79 Model类增加静态更新方法 update 2016-04-09 12:48:56 +08:00
thinkphp
6675a8f4da model类完善scope方法 并支持动态调用 重写driver类的scope方法 2016-04-09 12:37:41 +08:00
thinkphp
da9c41f9e7 Driver类的value方法拆分为value和column方法 用于获取单个值 及 列表值 2016-04-08 17:59:11 +08:00
thinkphp
65f6ee1fcf Driver类的get方法更名为value方法 避免和model类的get方法混淆 2016-04-08 17:32:35 +08:00
thinkphp
70de311a1d 改进 save方法的自动判断机制 支持一个位置注册多个事件 2016-04-08 15:43:00 +08:00
thinkphp
28fbc5fde3 Model增加类型自动转换设置属性 type, Driver类取消强制自动类型转换 2016-04-07 16:53:29 +08:00
thinkphp
0abae164e4 修正Driver当写入空数据的问题 2016-04-07 15:37:57 +08:00