Esempio n. 1
0
 public function rules()
 {
     // NOTE: you should only define rules for those attributes that
     // will receive user inputs.
     return array_merge(parent::rules(), array(array('user_id', 'validateCreatorIsAdherent')));
 }