title: Yii copying data from one model to another
body: <p>I'm new to yii. I collect data from a form using a model extended by <code>CFormModel</code> and inside controller I want to copy these data to a model which is extended from <code>CActiveRecord</code> in order to save to DB. Is there a method or way to copy data from data collected model to data saving model rather than doing this by attribute to attribute as it's so ugly. Thanks in advance. </p>