public function __construct($modelClassName, $modelAttributeName)
 {
     parent::__construct($modelClassName, $modelAttributeName);
     $this->rateToBase = 1;
 }
 public function __construct($modelClassName, $modelAttributeName)
 {
     parent::__construct($modelClassName, $modelAttributeName);
     assert('Yii::app()->user->userModel != null');
     $this->id = Yii::app()->user->userModel->currency->id;
 }