/** * @return \yii\db\ActiveQuery */ public function getAuthorsBooks() { return $this->hasMany(AuthorsBooks::className(), ['a_id' => 'id']); }