예제 #1
0
파일: Tags.php 프로젝트: abutouq/video
 /**
  * @return ActiveQuery
  */
 public function getUserTags()
 {
     return $this->hasMany(UserTag::className(), ['tag_id' => 'id']);
 }
예제 #2
0
파일: User.php 프로젝트: abutouq/video
 /**
  * @return ActiveQuery
  */
 public function getUserTags()
 {
     return $this->hasMany(UserTag::className(), ['user_id' => 'id'])->where(['status' => 'active']);
 }