Closed nargotik closed 3 years ago
Version 3.1 points out some mistakes that could have been made before. I think in your case there are extra brackets, it should be
$database::literal('?or', [
$database::literal("name LIKE ? ", $name )
]);
I will try out tonight, the case that the code I have posted was incomplete.
$where[] = $database::literal('?or', [
[
$database::literal("name LIKE ? ", $name )
],
[
$database::literal("rule2 LIKE ? ", $name )
],
]);
I would try:
$where[] = $database::literal('?or', [
$database::literal("name LIKE ? ", $name ),
$database::literal("rule2 LIKE ? ", $name ),
]);
and
$where[] = $database::literal('?or', [
[$database::literal("name LIKE ? ", $name ),$database::literal("subruleand LIKE ? ", $name )]
$database::literal("rule2 LIKE ? ", $name ),
]);
You have reason, correcting array solved the problem :+1:
Version: 3.1.0
Bug Description
After updating from 3.0.7 to 3.1.0 some code started to give error: