NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #3301 most downloaded on Packagist
the PHP Database&ORM Framework
Latest stable
v4.0.51
Last release 11 months ago
18 Dec 2025
Ships unpredictably
gaps range from 8 days to 4 months
Most releases are documented
notes for 52 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
180 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
修正使用模型对象更改数据时忽略自定义的suffix 和 connection参数
- 修正mongo驱动 - 修正多对多的分页查询 - 改进字符串查询自动识别 - 增加断线重连次数限制 - 替换list方法 - 改进模型更新后自动清理缓存 - cache方法tag参数支持数组 - 改进模型新增的主键获取
insertAll方法大量数据写入优化处理 改进分页对象上使用集合方法的返回值 改进关联属性的严格大小写 改进getData方法
insertAll方法大量数据写入优化处理 改进分页对象上使用集合方法的返回值 改进关联属性的严格大小写 改进getData方法
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
- 改进字段缓存 - 改进查询事件 - 修正关联查询缓存 - 改进withJoin查询 - 改进withCount查询
改进聚合查询 改进column方法对多表查询的支持 修复Mongo驱动 改进find查询支持不带条件使用order方法查询 修正关联统计闭包查询 改进数据库日志记录 取消debug配置参数 新增trigger_sql 和 fields_cache 配置参数
改进聚合查询 改进column方法对多表查询的支持 修复Mongo驱动 改进find查询支持不带条件使用order方法查询 修正关联统计闭包查询 改进数据库日志记录 取消debug配置参数 新增trigger_sql 和 fields_cache 配置参数
- 改进闭包的参数 - 改进关联类getModel方法 - 改进getLastInsID方法 - 模型has/hasWhere关联查询支持多次调用
Nothing published for this version
Nothing published for this version
Nothing published for this version
- 改进column查询方法 - 修正BelongsToMany关联 - 改进模型关联的has/hasWhere支持软删除 - 模型的获取器、修改器和搜索器方法支持依赖注入
Nothing published for this version
- getConfig 修复 - 改进时间查询的精准度 - 增加schema_cache_path配置 - 增加withCache方法用于缓存关联数据 - 延迟预载入支持查询缓存 - 增加mysql的XA事务支持 - 修正查询缓存标签
- 改进模型事件 - 取消PSR-6异常类接口 - 改进DbManager类
Nothing published for this version
Nothing published for this version
取消PSR-6规范依赖 增加日志PSR-3支持 废除查询explain分析(查询事件替代) 改进查询缓存 修正Mongo驱动
取消PSR-6规范依赖 增加日志PSR-3支持 废除查询explain分析(查询事件替代) 改进查询缓存 修正Mongo驱动
- 调整DbManager - 查询缓存使用PSR-6/PSR-16接口规范 - 改进门面类
* 解除对think-container依赖 * 增加对think-helper的依赖 * 改进DbManager和模型注入
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
- 更新支持容器及依赖注入 - 增加Db门面使用 - 增加查询缓存支持
基于PHP7.1+ 使用严格类型版本 (本版本不兼容1.*版本 请勿随便升级)
基于PHP7.1+ 使用严格类型版本 (本版本不兼容1.*版本 请勿随便升级)
Nothing published for this version
Nothing published for this version
- 时间字段支持微秒数据写入 - 改进聚合查询的DISTINCT 支持 - 修正Field方法 - 改进SqlSrv驱动对多Schema的支持
- 修正全局查询范围 - 改进查询参数自动绑定 - 改进BelongsTo关联的has方法 - 改进Model类增加replace方法
主要更新: * 改进聚合查询的字段支持DISTINCT * 改进多对多关联 * 改进参数绑定
主要更新:
改进数据库驱动的parseKey方法 改进模型修改器多次执行的问题
改进数据库驱动的parseKey方法 改进模型修改器多次执行的问题
同步更新框架的数据库和模型功能,主要包括: - 改进数据库的order方法解析 - 改进数据集的order方法 - 模型支持指定全局的查询范围 - 优化自动参数绑定性能 - 改进浮点型参数绑定支持 - 改进聚合查询及value/column查询对后续查询的影响 - 改进count方法返回值类型 -
同步更新框架的数据库和模型功能,主要包括:
Nothing published for this version
Nothing published for this version
改进软删除的事件 模型的关联操作默认自动事务 同步框架的一些其它更新
改进软删除的事件 模型的关联操作默认自动事务 同步框架的一些其它更新
增加MySQL的XA事务支持 同步ThinkPHP框架的一系列更新 修正一些已知问题
增加MySQL的XA事务支持 同步ThinkPHP框架的一系列更新 修正一些已知问题
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Mongo驱动聚合查询支持mongodb3.5+版本 增加多聚合查询支持 解决事务问题出错
Mongo驱动聚合查询支持mongodb3.5+版本 增加多聚合查询支持 解决事务问题出错
Nothing published for this version
具体使用可以参考:https://doc.thinkphp.cn/@think-orm/entity.html
具体使用可以参考:https://doc.thinkphp.cn/@think-orm/entity.html
主要更新如下: - 改进insertAll分批写入 - 改进断线重连 - with关联查询支持缓存 - 改进JSON数据操作 - 改进软删除 支持动态设置 - 模型类增加getError方法 - 模型类toCollection方法增加参数指定数据集类
主要更新如下:
- 改进自关联的多级调用 - 改进order方法 - 修正Mongo驱动 - 修正Mongodb的insertall方法 - 改进闭包查询的时候查询缓存出错 - 改进update生成的sql语句
Nothing published for this version
Nothing published for this version
Nothing published for this version
模型更新支持强制更新 增加oracle驱动支持 改进数组查询 改进多数据库连接的切换 改进Query类 改进Model类废弃字段判断 增加whereOr动态查询和unionAll方法
模型更新支持强制更新 增加oracle驱动支持 改进数组查询 改进多数据库连接的切换 改进Query类 改进Model类废弃字段判断 增加whereOr动态查询和unionAll方法
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.