EventoResumen.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "EventoResumen".
  6. *
  7. * @property int $id
  8. * @property string|null $uuid
  9. * @property string|null $inicio
  10. * @property string|null $fin
  11. * @property string|null $creado
  12. * @property string|null $modificado
  13. *
  14. * @property EventoResumenParticipante[] $eventoResumenParticipantes
  15. */
  16. class EventoResumen extends \yii\db\ActiveRecord {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName() {
  21. return 'EventoResumen';
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function rules() {
  27. return [
  28. [['inicio', 'fin', 'creado', 'modificado'], 'safe'],
  29. [['uuid'], 'string', 'max' => 50],
  30. ];
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function attributeLabels() {
  36. return [
  37. 'id' => 'ID',
  38. 'uuid' => 'Uuid',
  39. 'inicio' => 'Inicio',
  40. 'fin' => 'Fin',
  41. 'creado' => 'Creado',
  42. 'modificado' => 'Modificado',
  43. ];
  44. }
  45. /**
  46. * Gets query for [[EventoResumenParticipantes]].
  47. *
  48. * @return \yii\db\ActiveQuery
  49. */
  50. public function getEventoResumenParticipantes() {
  51. return $this->hasMany(EventoResumenParticipante::class, ['idEventoResumen' => 'id']);
  52. }
  53. }