/** * @return \yii\db\ActiveQuery */ public function getPapers() { return $this->hasMany(Paper::className(), ['Topic_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getPaper0() { return $this->hasOne(Paper::className(), ['id' => 'paper']); }