示例#1
0
文件: Books.php 项目: kolibri1/test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAuthor()
 {
     return $this->hasOne(Authors::className(), ['id' => 'author_id']);
 }