Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle][Validator] Add framework.validation.property_metadata_existence_check config#64312

Merged
nicolas-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
May 20, 2026
Merged

[FrameworkBundle][Validator] Add framework.validation.property_metadata_existence_check config#64312
nicolas-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

@nicolas-grekas
Copy link
Copy Markdown
Member

Q A
Branch? 8.1
Bug fix? no
New feature? yes
Deprecations? no
Issues Follow-up of #63355
License MIT

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_check config option (default false to preserve BC). When set to true, the option calls enablePropertyMetadataExistenceCheck() on the validator.builder service, so validateProperty() and validatePropertyValue() throw a ValidatorException when no metadata is found for the given property.

framework:
    validation:
        property_metadata_existence_check: true

Also adds the matching CHANGELOG entry to the Validator component that was missing in the original PR.

@nicolas-grekas nicolas-grekas merged commit e28b371 into symfony:8.1 May 20, 2026
9 of 12 checks passed
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
@fabpot fabpot mentioned this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.