예제 #1
0
파일: Inscritos.php 프로젝트: schw/SGE3
 public function getEvento()
 {
     return $this->hasOne(Evento::className(), ['idEvento' => 'evento_idevento']);
 }
예제 #2
0
파일: Tipo.php 프로젝트: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventos()
 {
     return $this->hasMany(Evento::className(), ['tipo_idtipo' => 'idtipo']);
 }
예제 #3
0
파일: User.php 프로젝트: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventoIdeventos()
 {
     return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('inscreve', ['usuario_idusuario' => 'idusuario']);
 }
예제 #4
0
파일: Palestrante.php 프로젝트: schw/SGE3
 public function getEvento()
 {
     return $this->hasMany(Evento::className(), ['palestrante_idPalestrante' => 'idPalestrante']);
 }
예제 #5
0
파일: Voluntario.php 프로젝트: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventoIdeventos()
 {
     return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('evento_has_voluntario', ['voluntario_idvoluntario' => 'idvoluntario']);
 }
예제 #6
0
파일: Local.php 프로젝트: schw/SGE3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventos()
 {
     return $this->hasMany(Evento::className(), ['local_idlocal' => 'idlocal']);
 }