Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMatapelajarans()
 {
     return $this->hasMany(Matapelajaran::className(), ['id_jurusan' => 'id_jurusan']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMaPel()
 {
     return $this->hasOne(Matapelajaran::className(), ['id_matapelajaran' => 'id_matapelajaran']);
 }