public function getEvento() { return $this->hasOne(Evento::className(), ['idEvento' => 'evento_idevento']); }
/** * @return \yii\db\ActiveQuery */ public function getEventos() { return $this->hasMany(Evento::className(), ['tipo_idtipo' => 'idtipo']); }
/** * @return \yii\db\ActiveQuery */ public function getEventoIdeventos() { return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('inscreve', ['usuario_idusuario' => 'idusuario']); }
public function getEvento() { return $this->hasMany(Evento::className(), ['palestrante_idPalestrante' => 'idPalestrante']); }
/** * @return \yii\db\ActiveQuery */ public function getEventoIdeventos() { return $this->hasMany(Evento::className(), ['idevento' => 'evento_idevento'])->viaTable('evento_has_voluntario', ['voluntario_idvoluntario' => 'idvoluntario']); }
/** * @return \yii\db\ActiveQuery */ public function getEventos() { return $this->hasMany(Evento::className(), ['local_idlocal' => 'idlocal']); }