As title, following is my code
$phql =
"UPDATE \Model\MyTable
SET deleted =1
WHERE
member_id =:member_id:
AND id IN (:ids:)";
return \Phalcon\DI::getDefault()['modelsManager']->executeQuery($phql, array(
'member_id' => 1,
'ids' => implode(', ', array(1, 2, 3));
));
It will return success, but only one row effected, use "\Phalcon\Db\Adapter\Pdo\Mysql::execute" too. I don't know why?