title: Yii2 query OR condition multiple values for 1 column
body: <p>I've made an API with the Yii2 framework.
  But I don't know how to use the OR condition in my statement.</p>
  
  <p>For example:
  I want to get all cars with brand BMW or DODGE.</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>$query = Car::getCar($lang)
           -&gt;where(['or', ['m.brand' =&gt; 'BMW'], ['m.brand' =&gt; 'DODGE']])
           -&gt;all();
  </code></pre>
  
  <p>But this doesn't work.
  I only get it to work with one value for m.brand.</p>
  
  <p>So:</p>
  
  <pre><code>$query = Car::getCar($lang)
           -&gt;where(['m.brand' =&gt; 'BMW'])
           -&gt;all();
  </code></pre>
  
  <p>Works just fine.</p>
  
  <p>Tried to put in a few other ways, but I don't get this to work.<br/>
  Does anyone know what I'm doing wrong?</p>
  
  <p><strong>EDIT</strong>
  The getCar method returns something like:</p>
  
  <pre><code>(new Query())-&gt;select(['a.auto_id'])-&gt;from('auto_new a') 
  </code></pre>
  
  <p><strong>EDIT 2</strong>
  Got it to work with:</p>
  
  <pre><code>$query-&gt;andWhere(['or', ['m.brand' =&gt; 'BMW'], ['m.brand' =&gt; 'DODGE']])
  </code></pre>