Commit Graph

489 Commits

Author SHA1 Message Date
thinkphp
e4c0e406cf exp查询支持传入绑定参数 2016-12-28 17:52:38 +08:00
thinkphp
293dce8639 改进 2016-12-28 14:58:43 +08:00
thinkphp
b0237b766d 改进关联定义中包含查询条件后重复执行的问题 2016-12-28 11:37:50 +08:00
thinkphp
d409477b42 改进参数绑定支持中文字段自动绑定 2016-12-27 15:49:01 +08:00
thinkphp
d89fb4bd0a 改进Builder类的insertall方法 增加对null和对象数据的处理 2016-12-27 13:43:31 +08:00
thinkphp
7a26126a9b 改进参数绑定类型 支持bit类型自动绑定 2016-12-27 10:23:22 +08:00
thinkphp
c20c27bcb8 Connection类model方法更改为getQuery 2016-12-27 08:15:57 +08:00
thinkphp
0fd7259679 修正 2016-12-26 23:06:20 +08:00
thinkphp
7bb3e5561c 优化Connection类__call方法 2016-12-26 22:55:38 +08:00
thinkphp
5128ad407b withCount方法的第二个参数默认为true 2016-12-26 15:58:16 +08:00
thinkphp
a74b842d71 改进关联统计 2016-12-26 15:52:53 +08:00
thinkphp
463cdcf874 配置文件调整 2016-12-24 22:10:30 +08:00
thinkphp
18f8ee155d 规范代码 2016-12-24 21:44:12 +08:00
thinkphp
43b364e286 规范代码 2016-12-24 21:37:05 +08:00
thinkphp
2c03514d98 Query类的order方法支持多次调用合并 2016-12-23 14:47:28 +08:00
thinkphp
a996640c7e 写入数据为对象的时候检测是否有__toString方法 2016-12-23 10:23:54 +08:00
thinkphp
6eedbc5a0a Model类的autoWriteTimestamp属性和类型转化类型支持设置为类名
dateFormat属性支持在数据库配置中设置datetime_format参数
2016-12-22 17:37:52 +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
082b3bea81 改进一对一关联预载入查询 支持使用IN方式 一对一关联类增加setEagerlyType方法用于设置预载入查询方式 默认为JOIN方式,setEagerlyType(1) 使用IN方式
Loader类的parseName方法增加第三个参数 用于驼峰法转换是否首字母大写
2016-12-13 11:43:26 +08:00
thinkphp
c04bb1cd1e 规范预载入方法的调用 如果调用user_profile 预载入会自动对应 userProfile关联方法 2016-12-11 17:36:35 +08:00
thinkphp
63a3936eb9 改进Query类table方法 2016-12-09 19:18:35 +08:00
thinkphp
9e0185411e 改进Query类的trigger方法参数 2016-12-09 18:31:05 +08:00
thinkphp
936e4b3b04 改进Builder类的parseDateTime方法 2016-12-09 18:12:27 +08:00
thinkphp
846553ec13 增加Query对象的before_find before_select after_insert after_update after_delete 事件注册 2016-12-09 17:52:09 +08:00
thinkphp
73c47acef8 改进Query类和Builder类 2016-12-07 12:14:31 +08:00
thinkphp
e0d23618b6 改进Query类的column方法 2016-12-07 11:18:04 +08:00
thinkphp
bf3797deda 修正闭包查询 2016-12-07 07:41:48 +08:00
thinkphp
4780d194b5 改进数据库操作join自身后出错的问题 2016-12-07 07:16:50 +08:00
thinkphp
b7f7a8a2a7 改进多表更新的字段不存在问题 2016-12-06 08:07:09 +08:00
thinkphp
32c2f5799b 修正子查询作为表名查询的问题 2016-12-05 16:48:18 +08:00
thinkphp
405825ff8a Model类增加resultSetType属性 用于指定模型查询的数据集对象(默认为空返回数组) Db类查询不再支持设置自定义数据集对象(只能使用数组或者think\Collection) 2016-12-05 16:24:02 +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
fedfd9c857 修正 2016-11-28 23:24:48 +08:00
thinkphp
7a79071d1a 查询支持一个字段多次查询条件 2016-11-28 22:44:59 +08:00
thinkphp
2f892770c2 改进sql日志的sql语句 2016-11-26 23:14:34 +08:00
thinkphp
f756bb804e 改进 2016-11-22 17:24:44 +08:00
thinkphp
ee5ef96aac 修正 2016-11-22 17:22:45 +08:00
thinkphp
1839123bcd 模型的all和select方法支持获取器 2016-11-22 17:18:59 +08:00
thinkphp
ada54290b7 改进自动参数绑定 2016-11-22 16:09:14 +08:00
thinkphp
72cdb44de8 改进in和between查询条件的自动参数绑定 2016-11-22 14:32:22 +08:00
thinkphp
384ce564f9 改进Query类对数据集对象以及关联字段排序的支持 2016-11-22 11:08:45 +08:00
thinkphp
45f260d11a 改进Query类的getTableInfo方法缓存读取 2016-11-17 22:24:45 +08:00
thinkphp
e643514af8 修正关联查询的时候 whereTime方法的bug 2016-11-15 18:53:56 +08:00
thinkphp
72209e8035 改进Query类的聚合查询 2016-11-12 23:55:17 +08:00
thinkphp
310775471a table方法支持字符串方式的子查询 2016-11-12 11:11:18 +08:00
thinkphp
a924186ce6 修正count avg方法使用fetchsql无法正确返回sql的问题 2016-11-12 10:38:19 +08:00
thinkphp
6f51dd0e47 修正软删除的withTrashed方法 Query类增加removeWhereField方法 2016-11-10 11:36:32 +08:00