예제 #1
0
파일: Books.php 프로젝트: slamcheg/site
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAuthor()
 {
     return $this->hasOne(Author::className(), ['id' => 'author_id']);
 }