title: Updating multiple rows using Yii's updateAll()
body: <p>I'm trying to update multiple rows in Yii:</p>
  
  <pre><code>$list = array(1, 2, 3, 4, 5);
  
  foreach($list as $id) {
      $query = "UPDATE products SET photos=crawler.photos, status=crawler.status WHERE id=crawler.product_id AND crawler.product_id=$id;";
  }
  </code></pre>
  
  <p>I'm new to Yii. Basically, I want to update rows from table <code>products</code> with the values from table <code>scrape</code> (using specific <code>id</code>, which are coming from <code>$list</code>). But not with <code>foreach()</code>, but with <code>updateAll()</code>.</p>