You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always get the error "Array to string conversion". Because in the \Spatie\QueryBuilder\AllowedFilter::resolveValueForFiltering the array_diff function is used. And this function is unable to convert my value to a string.
This discussion was converted from issue #569 on December 23, 2020 21:09.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I have issues when try to allow filtering by value that is a multidimensional array.
where
metadata
is an array:I always get the error "Array to string conversion". Because in the
\Spatie\QueryBuilder\AllowedFilter::resolveValueForFiltering
thearray_diff
function is used. And this function is unable to convert my value to a string.Thank you for helping.
Beta Was this translation helpful? Give feedback.
All reactions