示例#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']);
 }