[FrameworkBundle][Validator] Add framework.validation.property_metadata_existence_check config#64312
Merged
nicolas-grekas merged 1 commit intoMay 20, 2026
symfony:8.1symfony/symfony:8.1from
nicolas-grekas:fix/63355-framework-bundle-property-metadata-existence-checknicolas-grekas/symfony:fix/63355-framework-bundle-property-metadata-existence-checkCopy head branch name to clipboard
Merged
[FrameworkBundle][Validator] Add framework.validation.property_metadata_existence_check config#64312nicolas-grekas merged 1 commit intosymfony:8.1symfony/symfony:8.1from nicolas-grekas:fix/63355-framework-bundle-property-metadata-existence-checknicolas-grekas/symfony:fix/63355-framework-bundle-property-metadata-existence-checkCopy head branch name to clipboard
framework.validation.property_metadata_existence_check config#64312nicolas-grekas merged 1 commit into
symfony:8.1symfony/symfony:8.1from
nicolas-grekas:fix/63355-framework-bundle-property-metadata-existence-checknicolas-grekas/symfony:fix/63355-framework-bundle-property-metadata-existence-checkCopy head branch name to clipboard
Conversation
…ata_existence_check` config
stof
approved these changes
May 20, 2026
javiereguiluz
added a commit
to symfony/symfony-docs
that referenced
this pull request
May 22, 2026
…e_check option (lacatoire) This PR was merged into the 8.1 branch. Discussion ---------- Document framework.validation.property_metadata_existence_check option Documents the new `framework.validation.property_metadata_existence_check` option (symfony/symfony#64312), introduced in Symfony 8.1. Closes #22356 Commits ------- 876f059 Document framework.validation.property_metadata_existence_check option
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As noted by @stof in #63355 (comment), #63355 was missing the FrameworkBundle wiring to expose the new
ValidatorBuilder::enablePropertyMetadataExistenceCheck()method.This PR adds a
framework.validation.property_metadata_existence_checkconfig option (defaultfalseto preserve BC). When set totrue, the option callsenablePropertyMetadataExistenceCheck()on thevalidator.builderservice, sovalidateProperty()andvalidatePropertyValue()throw aValidatorExceptionwhen no metadata is found for the given property.Also adds the matching CHANGELOG entry to the Validator component that was missing in the original PR.