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

模型不能执行更新操作 #7

Closed
xushuhui opened this issue Nov 29, 2017 · 1 comment
Closed

模型不能执行更新操作 #7

xushuhui opened this issue Nov 29, 2017 · 1 comment

Comments

@xushuhui
Copy link

我把think-orm放在yaf里面 ,模型不能正常使用更新,这两种方式都报错Fatal error: Uncaught think\Exception: where express error
1、$res = UserModel::update(['name' => 'wwang'],['uid'=>18]);

2、$user = new UserModel();
$user->allowField(true)->save(['name' => 'wwang'],['uid'=>18]);

报错源码是在Builder.php line 304 elseif (!($value instanceof \Closure)) { 这里

@liu21st
Copy link
Member

liu21st commented Nov 30, 2017

这个问题我修正了下

@liu21st liu21st closed this as completed Nov 30, 2017
@ghost ghost mentioned this issue May 21, 2022
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