Review main Merged

96841[FEATURE] Allow #[IgnoreValidation] on Extbase properties

Alexander Schnitzler CR +2 V +2 Hard +560 −16 updated 10/20/26, 06:48

Commit message

Skipping the validation of a model property was only possible by
marking it #[Transient], which couples validation to a persistence
attribute. A property that is persisted but must not be validated,
or a transient property that should stay validated, could not be
expressed.

The attribute #[IgnoreValidation] can now be used on properties. A
property carrying it gets no validators at all: neither the ones
generated for model-typed and collection properties, nor those
declared with #[Validate] or Symfony constraints. This matches
the meaning on action parameters.

Skipping the generated validator through #[Transient] keeps working
but is deprecated and will be removed in TYPO3 v16. The deprecation
is triggered only where a validator would otherwise be generated,
and not for properties that carry both attributes. Extbase in v13.4
and v14 ignores unknown property attributes, so extensions can use
both attributes to support several versions.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • Oliver Klee +1
    • core-ci +1 CI

Issues 1

Files 15

Review log 810

  1. Alexander Schnitzler uploaded patch set 1 10/18/26, 18:04

  2. Alexander Schnitzler wrote 10/18/26, 18:04

    Topic set to extbase
  3. Alexander Schnitzler uploaded patch set 2 10/18/26, 18:14

  4. core-ci voted on patch set 2 V +1 10/18/26, 18:23 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111559

  5. core-ci voted on patch set 1 V -1 10/18/26, 18:23 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111554

  6. Alexander Schnitzler commented on patch set 2 10/18/26, 18:25

    This change is ready for review.
  7. Benni Mack voted on patch set 2 CR +1 V +1 10/19/26, 20:15

  8. Oliver Klee voted on patch set 2 V +1 10/19/26, 20:48

  9. Benni Mack voted on patch set 2 CR +2 V +2 10/20/26, 06:48

  10. Benni Mack merged patch set 3 10/20/26, 06:48