title: Custom fields are null on form submit in Yii
body: <p>I added three new fields to my model (year, month, date). When I submit the form data isn't get populated. All those three custom attributes are null on submission.</p>
  
  <p><a href="https://stackoverflow.com/questions/18328125/how-to-have-multiple-fields-d-m-y-for-single-date-property-in-yii">I have asked this question before</a> on implementing multiple fields for single property and I did what the answer suggested. What should I do. Here is my code.</p>
  
  <p><strong>User model:</strong></p>
  
  <pre><code>class User extends CActiveRecord
  {
      public $month;
      public $year;
      public $day;
      ...
  </code></pre>
  
  <p><strong>View file:</strong></p>
  
  <pre><code>&lt;?php echo $form-&gt;labelEx($model, "dob"); ?&gt;
  &lt;?php echo $form-&gt;dropDownList($model, 'year', $model-&gt;getDobOptions('year')); ?&gt;
  &lt;?php echo $form-&gt;dropDownList($model, 'month', $model-&gt;getDobOptions('month')); ?&gt;
  &lt;?php echo $form-&gt;dropDownList($model, 'day', $model-&gt;getDobOptions('day')); ?&gt;
  </code></pre>