title: CStarRating Fails to save to database
body: <p>I am trying to save rating in db but it fails where as if I place a value in database table it successfully retrieves it and shows.</p>
  
  <p>In my <code>$model-&gt;rating</code> is the rating of person in that table.</p>
  
  <p>This is the code</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'rating'); ?&gt;
      &lt;?php echo $model-&gt;rating;
                  $this-&gt;widget('CStarRating',array(
                      'model'=&gt;$model,    
                      'attribute'=&gt;'rating',
                       'maxRating'=&gt;5,
                      'starCount'=&gt;5,
                      'readOnly'=&gt;false,
          )); ?&gt;  
      &lt;/div&gt;
  </code></pre>