null], [['idEvento'], 'integer'], [['accion'], 'string', 'max' => 10], [['idEvento', 'accion'], 'unique', 'targetAttribute' => ['idEvento', 'accion']], [['idEvento'], 'exist', 'skipOnError' => true, 'targetClass' => Evento::class, 'targetAttribute' => ['idEvento' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'idEvento' => 'Id Evento', 'accion' => 'Accion', ]; } /** * Gets query for [[evento]]. * * @return \yii\db\ActiveQuery */ public function getEvento() { return $this->hasOne(Evento::class, ['id' => 'idEvento']); } }