/** * @return \yii\db\ActiveQuery */ public function getIdautor0() { return $this->hasOne(Autores::className(), ['id' => 'idautor']); }
/** * @return \yii\db\ActiveQuery */ public function getAutores() { return $this->hasMany(Autores::className(), ['idpais' => 'id']); }