예제 #1
0
 public function getTags()
 {
     return $this->hasMany(Tags::className(), ['id' => 'tag_id'])->viaTable('page_tags_rel', ['page_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTags()
 {
     return $this->hasMany(Tags::className(), ['TagID' => 'TagID'])->viaTable('PostTags', ['PostID' => 'PostID']);
 }