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

数组条件查询,有like关键字的时候报错如where express error:%thinkphp" #20

Closed
zithan opened this issue Jan 24, 2018 · 2 comments

Comments

@zithan
Copy link

zithan commented Jan 24, 2018

Db::table('think_user')
->where([
'title' => ['like','%thinkphp']
])
->select();


Notice: Undefined offset: 1 in /var/www/logistics/admin/vendor/topthink/think-orm/src/db/Builder.php on line 389
string(26) "where express error:%thinkphp"
@liu21st
Copy link
Member

liu21st commented Jan 24, 2018

不支持这种数组查询了的 参考5.1的开发手册可以

@liu21st liu21st closed this as completed Jan 24, 2018
@DkHHW
Copy link

DkHHW commented Jan 26, 2018

Db::table('think_user')
->where([
'title' => ['title','like','%thinkphp']
])
->select();

@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

3 participants