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