laravel4-datatables-package icon indicating copy to clipboard operation
laravel4-datatables-package copied to clipboard

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

Open dragon0103 opened this issue 10 years ago • 2 comments

->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

dragon0103 avatar Apr 27 '15 10:04 dragon0103

does this work?

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

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

MarkVaughn avatar Apr 28 '15 06:04 MarkVaughn

->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

chrisho avatar Apr 28 '15 07:04 chrisho