php phalcon phql update
<p>I am new to phalcon framework.I would like to update data from phalcon model update method.</p>

<blockquote>
  <p>$sql = "UPDATE <code>table</code> SET <code>col1</code>='1',<code>col2</code> = NULL WHERE 1";</p>
</blockquote>

<p>to </p>

<pre><code>&gt;  $all = model::findFirst();
&gt;                 $all-&gt;col1 = '1';
&gt;                 $all-&gt;col2= NULL;
&gt;                 $all-&gt;update();
</code></pre>

<p>I have no idea about for "where 1" .</p>