Beispiel #1
0
 public function getUser()
 {
     return $this->hasOne(MUser::className(), ['gh_id' => 'gh_id', 'openid' => 'openid']);
 }
Beispiel #2
0
 public function getFan()
 {
     return $this->hasOne(MUser::className(), ['gh_id' => 'newfan_ghid', 'openid' => 'newfan_openid']);
 }
Beispiel #3
0
 public function getFansCount()
 {
     return $this->hasMany(MUser::className(), ['gh_id' => 'gh_id', 'scene_pid' => 'scene_id'])->count('*');
 }
Beispiel #4
0
 public function getReciever()
 {
     return $this->hasOne(MUser::className(), ['id' => 'reciever_id']);
 }