title: Magic of UpdateAll
body: <p>I wrote the code below in cakephp for and updateAll query like</p>
  
  <pre><code>$this-&gt;loadModel('User');
  $this-&gt;User-&gt;updateAll(array('stauts'=&gt;'active'),array());
  </code></pre>
  
  <p>The above code's equivalent <code>SQL</code> query is generated like this</p>
  
  <pre><code>UPDATE User SET status='active' WHERE 0 = 1;
  </code></pre>
  
  <p>When I write updateAll in cakephp like below</p>
  
  <pre><code>$this-&gt;loadModel('User');
  $this-&gt;User-&gt;updateAll(array('stauts'=&gt;'active'));
  </code></pre>
  
  <p>This code's equivalent <code>SQL</code> query is generated like this</p>
  
  <pre><code>UPDATE User SET status='active';
  </code></pre>
  
  <p>I don't know why this happens.</p>
  
  <p>If you do not understand my question let me know in comments, I'll explain in shortly.</p>