The code below is not working
Robots::find(array( 'robot_id IN :ids:', 'bind'=>array('123','321','111') ));
how to use the IN statement and bind params properly?
PDO does not support bind arrays directly, you have to pass each value independently:
Robots::find(array( 'robot_id IN (?0, ?1, ?2)', 'bind'=>array('123','321','111') ));
ok, got it.