ThinkPHP6.x_模型Model代码提示

在TP6的 think/Model.php 里添加代码提示
* @method /think/db/Query master() static 从主服务器读取数据
* @method /think/db/Query readMaster(bool $all = false) static 后续从主服务器读取数据
* @method /think/db/Query table(string $table) static 指定数据表(含前缀)
* @method /think/db/Query name(string $name) static 指定数据表(不含前缀)
* @method /think/db/Query where(mixed $field, string $op = null, mixed $condition = null) static 查询条件
* @method /think/db/Query whereRaw(string $where, array $bind = []) static 表达式查询
*

ThinkPHP6.x_模型Model代码提示最先出现在Python成神之路

版权声明:
作者:dingding
链接:https://www.techfm.club/p/25480.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>