예제 #1
0
파일: Status.php 프로젝트: hdushku/npai
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTblUsers()
 {
     return $this->hasMany(TblUser::className(), ['status_id' => 'id']);
 }
예제 #2
0
파일: Post.php 프로젝트: Atsumoriso/Yii
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAuthor()
 {
     return $this->hasOne(TblUser::className(), ['id' => 'author_id']);
 }