Пример #1
0
 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
 public function getEvento()
 {
     return $this->hasMany(Evento::className(), ['palestrante_idPalestrante' => 'idPalestrante']);
 }
Пример #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventoIdeventos()
 {
     return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('evento_has_voluntario', ['voluntario_idvoluntario' => 'idvoluntario']);
 }
Пример #6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventos()
 {
     return $this->hasMany(Evento::className(), ['local_idlocal' => 'idlocal']);
 }