예제 #1
0
파일: MStaff.php 프로젝트: noikiy/wowewe
 public function getUser()
 {
     return $this->hasOne(MUser::className(), ['gh_id' => 'gh_id', 'openid' => 'openid']);
 }
예제 #2
0
 public function getFan()
 {
     return $this->hasOne(MUser::className(), ['gh_id' => 'newfan_ghid', 'openid' => 'newfan_openid']);
 }
예제 #3
0
파일: MChannel.php 프로젝트: noikiy/wowewe
 public function getFansCount()
 {
     return $this->hasMany(MUser::className(), ['gh_id' => 'gh_id', 'scene_pid' => 'scene_id'])->count('*');
 }
예제 #4
0
 public function getReciever()
 {
     return $this->hasOne(MUser::className(), ['id' => 'reciever_id']);
 }