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

trim() expects parameter 1 to be string, array given #717 #208

Open
dragon0103 opened this issue Apr 27, 2015 · 2 comments
Open

trim() expects parameter 1 to be string, array given #717 #208

dragon0103 opened this issue Apr 27, 2015 · 2 comments
Labels

Comments

@dragon0103
Copy link

->filterColumn('prod_id', 'whereIn', 'prod_id', [38,42,16])

Error:\vendor\bllim\datatables\src\Bllim\Datatables\Datatables.php717
trim() expects parameter 1 to be string, array given

@MarkVaughn
Copy link
Contributor

does this work?

->filterColumn('prod_id', 'whereIn', 'prod_id', '38,42,16')

or this
->filterColumn('prod_id', 'whereIn', 'prod_id', implode(',',[38,42,16]))

@chrisho
Copy link

chrisho commented Apr 28, 2015

->filterColumn('prod_id', 'whereIn', 'prod_id', '38,42,16')

it show error: Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given, called in E:\web\sudehuishou\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 311 and defined

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

No branches or pull requests

3 participants