public function getTags() { return $this->hasMany(Tag::className(), ['id' => 'tag_id'])->viaTable('tbl_tour_tag_assn', ['tour_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getTag() { return $this->hasOne(Tag::className(), ['id' => 'tag_id']); }
/** * @return \yii\db\ActiveQuery */ public function getTags() { return $this->hasMany(Tag::className(), ['TagId' => 'TagId'])->viaTable('documenttag', ['DocumentId' => 'DocumentId']); }
/** * ($this) getTags : * @return \yii\db\ActiveQuery */ public function getTags() { return $this->hasMany(Tag::className(), ['id' => 'tag_id'])->viaTable('{{%helpdoc_tag}}', ['helpdoc_id' => 'id']); }