예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTag0()
 {
     return $this->hasOne(Tags::className(), ['tag_name' => 'tag']);
 }
예제 #2
0
파일: VideoTag.php 프로젝트: abutouq/video
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTag()
 {
     return $this->hasOne(Tags::className(), ['id' => 'tag_id']);
 }
예제 #3
0
파일: Posts.php 프로젝트: raguila/islc
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTag()
 {
     return $this->hasOne(Tags::className(), ['TagID' => 'TagID']);
 }
예제 #4
0
파일: Album.php 프로젝트: abutouq/video
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMainTag()
 {
     return $this->hasOne(Tags::className(), ['id' => 'main_tag'])->from(Tags::tableName() . ' maintag');
 }
예제 #5
0
파일: Tags.php 프로젝트: abutouq/video
 /**
  * @return ActiveQuery
  */
 public function getSubTags()
 {
     return $this->hasMany(Tags::className(), ['parent_id' => 'id'])->where(['status' => 'active']);
 }
예제 #6
0
파일: User.php 프로젝트: abutouq/video
 /**
  * @return ActiveQuery
  */
 public function getTags()
 {
     return $this->hasMany(Tags::className(), ['id' => 'tag_id'])->where(['status' => 'active'])->via('userTags');
 }