title: multiple where condition in yii2
body: <p>Hi, my problem is simple i want to add multiple where condition on yii2 Query bulder, but i don't know what doing.</p>
  
  <p>my code like that</p> 
  
  <pre><code>public function searchForTrip($params, $extraParams, $filter) {
      $query = Boatinformation::find()
          -&gt;where(['what_island' =&gt; $params['BoatinformationSearch']['what_island']])
          -&gt;all();
  
      if(isset($filter)) {
          foreach ($filter as $key =&gt; $value) {
              -&gt;andFilterWhere([$value =&gt; 1])
          }
      }
  
      return $query;
  }
  </code></pre>
  
  <p>this is not working</p>
  
  <p>please someone help me </p>