Exemplo n.º 1
0
 /**
  * 获取关注者
  * @return static
  */
 public function getFollower()
 {
     return $this->hasMany(UserMeta::className(), ['target_id' => 'id'])->where(['target_type' => self::TYPE, 'type' => 'follow']);
 }