Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDiagnosas()
 {
     return $this->hasMany(Diagnosa::className(), ['gejala_id' => 'id']);
 }
 public function create()
 {
     $diagnosa = Diagnosa::all();
     $noreglab = RegLab::where('NoRegLab', '=', Input::get('noreglab'))->first();
     return View::make('riwdiag.create_riwdiag')->with('noreglab', $noreglab)->with('diagnosa', $diagnosa);
 }