예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGejala()
 {
     return $this->hasOne(PenyakitGejala::className(), ['id' => 'gejala_id']);
 }
예제 #2
0
파일: Penyakit.php 프로젝트: cakpep/spk-tht
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGejalas()
 {
     return $this->hasMany(PenyakitGejala::className(), ['id' => 'gejala_id'])->viaTable('diagnosa', ['penyakit_id' => 'id']);
 }