Open GoogleCodeExporter opened 9 years ago
Added this to Profile model..
public function beforeSave() {
if ($this->isNewRecord){ //los defaults
$fv = ProfileField::model()->findAll();
foreach($fv as $f){
$this[$f->varname] = $f->default;
}
}
return parent::beforeSave();
}
may not be the best solution .. :|
Original comment by xala...@gmail.com
on 24 Jan 2012 at 7:11
Original issue reported on code.google.com by
xala...@gmail.com
on 24 Jan 2012 at 6:55