| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "EventoResumenParticipante".
- *
- * @property int $id
- * @property int|null $idEventoResumen
- * @property int|null $idDependencia
- * @property string|null $nombreDependencia
- * @property int|null $idGrupo
- * @property string|null $nombreGrupo
- * @property int|null $idUsuario
- * @property string|null $nombre
- * @property int|null $totalEventos
- * @property string|null $participacion
- *
- * @property Dependencia $Dependencia
- * @property EventoResumen $EventoResumen
- * @property Grupo $Grupo
- * @property Usuario $Usuario
- */
- class EventoResumenParticipante extends \yii\db\ActiveRecord {
- /**
- * {@inheritdoc}
- */
- public static function tableName() {
- return 'EventoResumenParticipante';
- }
- /**
- * {@inheritdoc}
- */
- public function rules() {
- return [
- [['idEventoResumen', 'idDependencia', 'idGrupo', 'idUsuario', 'totalEventos'], 'default', 'value' => null],
- [['idEventoResumen', 'idDependencia', 'idGrupo', 'idUsuario', 'totalEventos'], 'integer'],
- [['nombreDependencia', 'nombreGrupo'], 'string', 'max' => 250],
- [['nombre'], 'string', 'max' => 100],
- [['participacion'], 'string', 'max' => 255],
- [['idDependencia'], 'exist', 'skipOnError' => true, 'targetClass' => Dependencia::class, 'targetAttribute' => ['idDependencia' => 'id']],
- [['idEventoResumen'], 'exist', 'skipOnError' => true, 'targetClass' => EventoResumen::class, 'targetAttribute' => ['idEventoResumen' => 'id']],
- [['idGrupo'], 'exist', 'skipOnError' => true, 'targetClass' => Grupo::class, 'targetAttribute' => ['idGrupo' => 'id']],
- [['idUsuario'], 'exist', 'skipOnError' => true, 'targetClass' => Usuario::class, 'targetAttribute' => ['idUsuario' => 'id']],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels() {
- return [
- 'id' => 'ID',
- 'idEventoResumen' => 'Id Evento Resumen',
- 'idDependencia' => 'Id Dependencia',
- 'nombreDependencia' => 'Nombre Dependencia',
- 'idGrupo' => 'Id Grupo',
- 'nombreGrupo' => 'Nombre Grupo',
- 'idUsuario' => 'Id Usuario',
- 'nombre' => 'Nombre',
- 'totalEventos' => 'Total Eventos',
- 'participacion' => 'Participacion',
- ];
- }
- /**
- * Gets query for [[Dependencia]].
- *
- * @return \yii\db\ActiveQuery
- */
- public function getDependencia() {
- return $this->hasOne(Dependencia::class, ['id' => 'idDependencia']);
- }
- /**
- * Gets query for [[EventoResumen]].
- *
- * @return \yii\db\ActiveQuery
- */
- public function getEventoResumen() {
- return $this->hasOne(EventoResumen::class, ['id' => 'idEventoResumen']);
- }
- /**
- * Gets query for [[Grupo]].
- *
- * @return \yii\db\ActiveQuery
- */
- public function getGrupo() {
- return $this->hasOne(Grupo::class, ['id' => 'idGrupo']);
- }
- /**
- * Gets query for [[Usuario]].
- *
- * @return \yii\db\ActiveQuery
- */
- public function getUsuario() {
- return $this->hasOne(Usuario::class, ['id' => 'idUsuario']);
- }
- }
|