title: Yii2: using find() to filter with attributes and one() performs a select all instead of filtering
body: <p>I've this line of code</p>
  
  <pre><code>Product::find(['internal_code' =&gt; $code])-&gt;one();
  </code></pre>
  
  <p>I was expecting a SQL like this</p>
  
  <pre><code>SELECT * FROM tbl_product 
  WHERE internal_code = '&lt;code_var_value&gt;'
  </code></pre>
  
  <p>Instead, debug toolbar show me a flat</p>
  
  <pre><code>SELECT * FROM tbl_product
  </code></pre>
  
  <p>So, even if <code>internal_code</code> is not found, the result of a select all piped with <code>one()</code> is that the first record of the tabòe (even if not matching) is retrieved.</p>
  
  <p>What am I doing wrong?</p>