/** * @return \yii\db\ActiveQuery */ public function getPatients() { return $this->hasMany(Patient::className(), ['patient_doctor' => 'doctor_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPatients() { return $this->hasMany(Patient::className(), ['patient_room' => 'room_id']); }