Replies: 1 comment
-
So this won't work: ->andWhere(
"myField LIKE '?:foo:'",
[
"foo"=>$foo
]
) This will: ->andWhere(
"myField LIKE :foo:",
[
"foo"=>"?".$foo
]
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to crreate a query with LIKE condition using Query Builder.
Using the conventional method, might result the query break, because the variable have to be escaped.
Beta Was this translation helpful? Give feedback.
All reactions