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