EventoGrupo.php 745 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "EventoGrupo".
  6. *
  7. * @property int $idEvento
  8. * @property int $idGrupo
  9. */
  10. class EventoGrupo extends \yii\db\ActiveRecord {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public static function tableName() {
  15. return 'EventoGrupo';
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function rules() {
  21. return [
  22. [['idEvento', 'idGrupo'], 'required'],
  23. [['idEvento', 'idGrupo'], 'default', 'value' => null],
  24. [['idEvento', 'idGrupo'], 'integer'],
  25. [['idEvento', 'idGrupo'], 'unique', 'targetAttribute' => ['idEvento', 'idGrupo']],
  26. ];
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function attributeLabels() {
  32. return [
  33. 'idEvento' => 'Id Evento',
  34. 'idGrupo' => 'Id Grupo',
  35. ];
  36. }
  37. }