null], [['idEvento'], 'integer'], [['key'], 'string', 'max' => 50], [['url'], 'string', 'max' => 500], [['redSocial'], 'string', 'max' => 250], [['idEvento', 'url'], 'unique', 'targetAttribute' => ['idEvento', 'url']], [['idEvento'], 'exist', 'skipOnError' => true, 'targetClass' => Evento::class, 'targetAttribute' => ['idEvento' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'idEvento' => 'Id Evento', 'key' => 'Key', 'url' => 'Url', 'redSocial' => 'Red Social', ]; } /** * Gets query for [[evento]]. * * @return \yii\db\ActiveQuery */ public function getEvento() { return $this->hasOne(Evento::class, ['id' => 'idEvento']); } }