easy-swoole / easyswoole

swoole,easyswoole,swoole framework
https://www.easyswoole.com/
Apache License 2.0
4.73k stars 512 forks source link

orm2.x的文档部分是不是还没有齐全? #553

Open LOVE2CMOL opened 2 years ago

LOVE2CMOL commented 2 years ago

我按照https://www.easyswoole.com/Components/Orm/problem.html的试了下缺缺少invoke方法 按照https://github.com/easy-swoole/orm缺是缺少Model::invoke()

是不是1.x 2.x两个版本完全不一样了? 有没有2.x的文档?

https://www.easyswoole.com/Components/Orm/query.html

同时报告下 文档有误 https://github.com/easy-swoole/orm image

XueSiLf commented 2 years ago

好的,感谢反馈。晚上修正。

XueSiLf commented 2 years ago

不是的哦,1.2.x 版本有提供方法哦。 调用形式:

$value = DbManager::getInstance()->invoke(function (MysqliClient $client){
    $client->rawQuery("call add_account_proc_v1('002c3d76f952f5bf1271be1bf33771d8', '102', 'huawei', 'tmp', '002c3d76f952f5bf1271be1bf33771d8', 1, '2020-08-14 17:29:36')");
    var_dump($client->mysqlClient()->fetchAll());
    return $client->mysqlClient()->nextResult();
});
var_dump($value);

2.x版本暂时还未发布。

XueSiLf commented 2 years ago

README已修复,https://github.com/easy-swoole/orm/pull/222

LOVE2CMOL commented 2 years ago

嗯 只是项目现在是2.0的mysqli 要降版本 不然orm1.x装不上去 建项目的时候没有考虑到这个问题

XueSiLf commented 2 years ago

好的,晚上我兼容下mysqli2.0版本

---原始邮件--- 发件人: @.> 发送时间: 2022年7月5日(周二) 下午5:43 收件人: @.>; 抄送: @.**@.>; 主题: Re: [easy-swoole/easyswoole] orm2.x的文档部分是不是还没有齐全? (Issue #553)

嗯 只是项目现在是2.0的mysqli 要降版本 不然orm1.x装不上去

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

LOVE2CMOL commented 2 years ago

那太感谢了