Exemplo n.º 1
0
 /**
  * Get the query of follows which is following me.
  * @return BaseUserRelationQuery
  */
 public function getInverseFollows()
 {
     $model = Follow::buildNoInitModel();
     return $this->hasMany(Follow::className(), [$model->otherGuidAttribute => $this->guidAttribute])->inverseOf('user');
 }