Exemplo n.º 1
0
 /**
  * Get the query of the users who is following me.
  * @return BaseUserQuery
  */
 public function getFollowers()
 {
     $model = Follow::buildNoInitModel();
     return $this->hasMany(User::className(), [$this->guidAttribute => $model->createdByAttribute])->via('inverseFollows');
 }