Hi Guys, can someone please give me a example of binding a array for a IN operator in find. eg.
$robots = Robots::find(
[
'conditions' => 'type_id IN :types:',
'bind' => [
"type_ids" => [1,2,3],
]
]
);
The above gives SQL syntax errors.
I have tried this as well
$robots = Robots::find(
[
'conditions' => 'type_id IN (:types:)',
'bind' => [
"type_ids" => implode(",", [1,2,3]),
]
]
);
but I still get errors