Doctrine executeUpdate array parameter
<p>How can I do update in doctrine, with array, so I don't do for loop for each time (I just want to do 1 call to database)</p>

<pre><code>$myarray = [1, 2, 3];
$sql = "UPDATE `mytable` SET is_processing = :is_processing, end_time=NOW() WHERE id = :id";

$result = $this-&gt;connection-&gt;executeUpdate(
    $sql,
    array(
        'is_processing' =&gt; false,
        'id' =&gt; $myarray // This is unknown number amount of array
    )
);
</code></pre>

<p>What I'm trying to achieve is: 
it should update the table with field is_processing = false, endTime become current time, where id = whatever the array point to</p>