500], [['tag', 'firebaseId'], 'string', 'max' => 50], [['url'], 'string', 'max' => 155], [['ciudad', 'redSocial'], 'string', 'max' => 100], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'nombre' => 'Nombre', 'descripcion' => 'Descripcion', 'fotoEvento' => 'Foto Evento', 'tag' => 'Tag', 'url' => 'Url', 'fechaInicio' => 'Fecha Inicio', 'fechaFinal' => 'Fecha Final', 'creado' => 'Creado', 'modificado' => 'Modificado', 'eliminado' => 'Eliminado', 'firebaseId' => 'Firebase ID', 'ciudad' => 'Ciudad', 'redSocial' => 'Red Social', ]; } /** * Gets query for [[eventoAcciones]]. * * @return \yii\db\ActiveQuery */ public function getEventoAcciones() { return $this->hasMany(EventoAccion::class, ['idEvento' => 'id']); } /** * Gets query for [[eventoGrupos]]. * * @return \yii\db\ActiveQuery */ public function getEventoGrupos() { return $this->hasMany(EventoGrupo::class, ['idEvento' => 'id']); } /** * Gets query for [[grupos]]. * * @return \yii\db\ActiveQuery */ public function getGrupos() { return $this->hasMany(Grupo::class, ['id' => 'idGrupo'])->viaTable('EventoGrupo', ['idEvento' => 'id']); } /** * Gets query for [[redes]]. * * @return \yii\db\ActiveQuery */ public function getRedes() { return $this->hasMany(Red::class, ['idEvento' => 'id']); } /** * Gets query for [[resultados]]. * * @return \yii\db\ActiveQuery */ public function getResultados() { return $this->hasMany(Resultado::class, ['idEvento' => 'id']); } }