title: Yii framework. Can't save model
body: <p>I have problem with Yii. I have following code in controller:</p>
  
  <pre><code>...
  $user = User::model()-&gt;find("user_id = :id AND type='1'", array('id'=&gt;$user-&gt;id));
  $user-&gt;time=new CDbExpression('NOW()'); 
  $user-&gt;status=1;
  $user-&gt;save();
  ...
  </code></pre>
  
  <p>And Im getting this error:                    </p>
  
  <blockquote>
    <p>Call to undefined method stdClass::save()</p>
  </blockquote>
  
  <p>What's wrong?</p>