コード例 #1
0
ファイル: Especialidad.php プロジェクト: kachomanic/covan
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDocentes()
 {
     return $this->hasMany(Docentes::className(), ['idEspecialidad' => 'idEspecialidad']);
 }
コード例 #2
0
ファイル: Grupo.php プロジェクト: kachomanic/covan
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdDocente0()
 {
     return $this->hasOne(Docentes::className(), ['idDocente' => 'idDocente']);
 }