EventoResumenParticipante.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "EventoResumenParticipante".
  6. *
  7. * @property int $id
  8. * @property int|null $idEventoResumen
  9. * @property int|null $idDependencia
  10. * @property string|null $nombreDependencia
  11. * @property int|null $idGrupo
  12. * @property string|null $nombreGrupo
  13. * @property int|null $idUsuario
  14. * @property string|null $nombre
  15. * @property int|null $totalEventos
  16. * @property string|null $participacion
  17. *
  18. * @property Dependencia $Dependencia
  19. * @property EventoResumen $EventoResumen
  20. * @property Grupo $Grupo
  21. * @property Usuario $Usuario
  22. */
  23. class EventoResumenParticipante extends \yii\db\ActiveRecord {
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public static function tableName() {
  28. return 'EventoResumenParticipante';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules() {
  34. return [
  35. [['idEventoResumen', 'idDependencia', 'idGrupo', 'idUsuario', 'totalEventos'], 'default', 'value' => null],
  36. [['idEventoResumen', 'idDependencia', 'idGrupo', 'idUsuario', 'totalEventos'], 'integer'],
  37. [['nombreDependencia', 'nombreGrupo'], 'string', 'max' => 250],
  38. [['nombre'], 'string', 'max' => 100],
  39. [['participacion'], 'string', 'max' => 255],
  40. [['idDependencia'], 'exist', 'skipOnError' => true, 'targetClass' => Dependencia::class, 'targetAttribute' => ['idDependencia' => 'id']],
  41. [['idEventoResumen'], 'exist', 'skipOnError' => true, 'targetClass' => EventoResumen::class, 'targetAttribute' => ['idEventoResumen' => 'id']],
  42. [['idGrupo'], 'exist', 'skipOnError' => true, 'targetClass' => Grupo::class, 'targetAttribute' => ['idGrupo' => 'id']],
  43. [['idUsuario'], 'exist', 'skipOnError' => true, 'targetClass' => Usuario::class, 'targetAttribute' => ['idUsuario' => 'id']],
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels() {
  50. return [
  51. 'id' => 'ID',
  52. 'idEventoResumen' => 'Id Evento Resumen',
  53. 'idDependencia' => 'Id Dependencia',
  54. 'nombreDependencia' => 'Nombre Dependencia',
  55. 'idGrupo' => 'Id Grupo',
  56. 'nombreGrupo' => 'Nombre Grupo',
  57. 'idUsuario' => 'Id Usuario',
  58. 'nombre' => 'Nombre',
  59. 'totalEventos' => 'Total Eventos',
  60. 'participacion' => 'Participacion',
  61. ];
  62. }
  63. /**
  64. * Gets query for [[Dependencia]].
  65. *
  66. * @return \yii\db\ActiveQuery
  67. */
  68. public function getDependencia() {
  69. return $this->hasOne(Dependencia::class, ['id' => 'idDependencia']);
  70. }
  71. /**
  72. * Gets query for [[EventoResumen]].
  73. *
  74. * @return \yii\db\ActiveQuery
  75. */
  76. public function getEventoResumen() {
  77. return $this->hasOne(EventoResumen::class, ['id' => 'idEventoResumen']);
  78. }
  79. /**
  80. * Gets query for [[Grupo]].
  81. *
  82. * @return \yii\db\ActiveQuery
  83. */
  84. public function getGrupo() {
  85. return $this->hasOne(Grupo::class, ['id' => 'idGrupo']);
  86. }
  87. /**
  88. * Gets query for [[Usuario]].
  89. *
  90. * @return \yii\db\ActiveQuery
  91. */
  92. public function getUsuario() {
  93. return $this->hasOne(Usuario::class, ['id' => 'idUsuario']);
  94. }
  95. }