| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "EventoGrupo".
- *
- * @property int $idEvento
- * @property int $idGrupo
- */
- class EventoGrupo extends \yii\db\ActiveRecord {
- /**
- * {@inheritdoc}
- */
- public static function tableName() {
- return 'EventoGrupo';
- }
- /**
- * {@inheritdoc}
- */
- public function rules() {
- return [
- [['idEvento', 'idGrupo'], 'required'],
- [['idEvento', 'idGrupo'], 'default', 'value' => null],
- [['idEvento', 'idGrupo'], 'integer'],
- [['idEvento', 'idGrupo'], 'unique', 'targetAttribute' => ['idEvento', 'idGrupo']],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels() {
- return [
- 'idEvento' => 'Id Evento',
- 'idGrupo' => 'Id Grupo',
- ];
- }
- }
|