Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDiscipline()
 {
     return $this->hasOne(DisciplineDistribution::className(), ['discipline_distribution_id' => 'id_discipline']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDisciplineDistributions()
 {
     return $this->hasMany(DisciplineDistribution::className(), ['id_discipline' => 'discipline_id']);
 }