title: Fatal error: Call to undefined method stdClass::save()
body: <p>  when i need to update ,i receive this answer.  what i should do?</p>
  
  <pre><code>public function actionUpdate($id)
  {       
      if(isset($_POST['submit']))
      {
          $recruit = Recruit::model()-&gt;findByPk($_POST['pid']);
          $recruit-&gt;title = $_POST['title'];
          $test-&gt;save();
              $this-&gt;redirect(array('admin','id'=&gt;$id));              
      }
  
      $this-&gt;render('update',array(
          'model'=&gt;$this-&gt;loadModel($_POST['pid']),
          'id'=&gt;$id,
          'pid'=&gt;$_POST['pid'],
      ));
  }
  </code></pre>