title: failing data insertion after $model->validate() in yii
body: <p>i am using $model->validate() in yii.. all validations passed but $model->save() doesn't work. What can i do to solve this issue? thanks in advance.</p>
  
  <p>here is my controller:</p>
  
  <pre><code>$model = new BaseSysRegistration();
  $model-&gt;attributes = $_POST['BaseSysRegistration'];
  $model-&gt;of_passport_number = $_POST['of_passport_number'];
  $model-&gt;password2 = $_POST['BaseSysRegistration']['password'];
  $model-&gt;email_addr = $_POST['BaseSysRegistration']['email_addr'];
  $model-&gt;security_question_1_id = $_POST['BaseSysRegistration']['security_question_1_id'];
  $model-&gt;security_question_1_answer = $_POST['BaseSysRegistration']['security_question_1_answer'];
  
  if($model-&gt;validate()){
          $model-&gt;save();
  }
  </code></pre>