/** * 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'); }