예제 #1
0
파일: Comment.php 프로젝트: YGugnin/Elb-v3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSingle()
 {
     return $this->hasOne(Single::className(), ['id' => 'single_id']);
 }
예제 #2
0
파일: Artist.php 프로젝트: YGugnin/Elb-v3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSingles()
 {
     return $this->hasMany(Single::className(), ['artist_id' => 'id']);
 }