/** * @return \yii\db\ActiveQuery */ public function getTopicTags() { return $this->hasMany(TopicTag::className(), ['tag_id' => 'id']); }