public function __set($name, $value)
 {
     try {
         parent::__set($name, $value);
         if ($name === 'eav_set_id') {
             $this->refreshEavAttributes();
         }
     } catch (CException $ex) {
         if ($this->setEavAttribute($name, $value) === false) {
             throw $ex;
         }
     }
 }