title: Yii2-mongodb: How can i write update query in yii2 specific to php mongodb?
body: <p>I am recently studing yii2. I am using mongodb at backend database. I am confused for the update query i found in the documentation</p>
  
  <pre><code> public function actionUpdate($id)
  {
      $query = new Query;
      $row = $query-&gt;from('item')
          where(['_id' =&gt; $id]) // implicit typecast to [[\MongoId]]
          -&gt;one();
      ...
  }
  </code></pre>
  
  <p>I am writing php specific mongodb query as follows...</p>
  
  <pre><code>    $update = array('$set' =&gt; array("status" =&gt; 'read', "agencyStatus" =&gt; 'unread'));
      $where = array("_id" =&gt; new MongoId($id));
  
      $mongoDb-&gt;update($where, $update);
  </code></pre>
  
  <p>how the syntax would be in yii2 specific mongodb???</p>