/** * Sets relation with Mod. * @return \yii\db\ActiveQuery */ public function getMods() { return $this->user->hasMany(Mod::className(), ['user_id' => $this->getId()]); }