/** * @return \yii\db\ActiveQuery */ public function getReports() { return $this->hasMany(Report::className(), ['patient_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getReport() { return $this->hasOne(Report::className(), ['id' => 'report_id']); }
/** * @return \yii\db\ActiveQuery */ public function getReports() { return $this->hasMany(Report::className(), ['operator_id' => 'id']); }