/** * @return \yii\db\ActiveQuery */ public function getAuthor() { return $this->hasOne(Author::className(), ['id' => 'author_id']); }