Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LOVE2CMOL opened this issue Jul 3, 2022 · 6 comments
Open

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

LOVE2CMOL opened this issue Jul 3, 2022 · 6 comments

Comments

@LOVE2CMOL
Copy link

我按照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
Copy link
Collaborator

XueSiLf commented Jul 4, 2022

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

@XueSiLf
Copy link
Collaborator

XueSiLf commented Jul 5, 2022

不是的哦,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
Copy link
Collaborator

XueSiLf commented Jul 5, 2022

README已修复,easy-swoole/orm#222

@LOVE2CMOL
Copy link
Author

LOVE2CMOL commented Jul 5, 2022


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

@XueSiLf
Copy link
Collaborator

XueSiLf commented Jul 5, 2022 via email

@LOVE2CMOL
Copy link
Author

那太感谢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants