Parameter Binding ErrorException: Array to string conversion

Posted 1 year ago by hillcow


->join('tag_thread AS t2', function($join) use ($tagId) { $join->on('t1.thread_id', '=', 't2.thread_id') ->where('t1.tag_id', '=', ':id', ['id' => $tagId]); })

results in:

ErrorException in Grammar.php line 196: Array to string conversion

without parameter binding it works:

->where('t1.tag_id', '=', $tagId);

What is the problem here? Thank you!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.