Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Form] Deprecated "cascade_validation"#15019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.8fromwebmozart:deprecate-cascade-validation
Jun 17, 2015

Conversation

@webmozart
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets#11268 (requires explicit work though)
LicenseMIT
Doc PRTODO

This is#12237 rebased on 2.8.

The "cascade_validation" option was designed for a 1% use case and comparatively used way too often when theValid constraint should have been used instead. Also, there seem to be bugs with that option (#5204).

The option is now deprecated. When using the 2.5 Validator API, you can set the "constraints" option of the respective child to aValid constraint instead. Alternatively, set the constraint in the model (as most people hopefully do).

@webmozartwebmozartforce-pushed thedeprecate-cascade-validation branch 2 times, most recently from0f62d32 to6ce406fCompareJune 17, 2015 14:29
@webmozart
Copy link
ContributorAuthor

This has been rebased onto 2.8. Can you please review @symfony/deciders?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should be move to the 2.8 UPGRADE file.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

@webmozartwebmozartforce-pushed thedeprecate-cascade-validation branch from6ce406f tob9cac9bCompareJune 17, 2015 15:06
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this will trigger the deprecation only if people set the value to true. but for the people that set it to false, it should probably also trigger a deprecation. when we remove the option completely, evenfalse will break their code as it creates an unknown option error. So what we did with some options is to change the default tonull and then trigger the deorecation when!== null. and returnfalse for null in the normalizer to keep the boolean logic.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I was thinking about doing that. Let's do this.

@webmozartwebmozartforce-pushed thedeprecate-cascade-validation branch fromb9cac9b to09fabfeCompareJune 17, 2015 15:38
@webmozartwebmozart reopened thisJun 17, 2015
@webmozartwebmozartforce-pushed thedeprecate-cascade-validation branch frome19ec27 to6c554c6CompareJune 17, 2015 18:03
@webmozart
Copy link
ContributorAuthor

Ready to be merged. Ping @symfony/deciders

@Tobion
Copy link
Contributor

👍

@fabpot
Copy link
Member

Thank you@webmozart.

@fabpotfabpot merged commit6c554c6 intosymfony:2.8Jun 17, 2015
fabpot added a commit that referenced this pull requestJun 17, 2015
This PR was merged into the 2.8 branch.Discussion----------[Form] Deprecated "cascade_validation"| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#11268 (requires explicit work though)| License       | MIT| Doc PR        | TODOThis is#12237 rebased on 2.8.The "cascade_validation" option was designed for a 1% use case and comparatively used way too often when the `Valid` constraint should have been used instead. Also, there seem to be bugs with that option (#5204).The option is now deprecated. When using the 2.5 Validator API, you can set the "constraints" option of the respective child to a `Valid` constraint instead. Alternatively, set the constraint in the model (as most people hopefully do).Commits-------6c554c6 [Form] Deprecated "cascade_validation"
weaverryan added a commit to symfony/symfony-docs that referenced this pull requestJun 19, 2015
…n constraint (peterrehm)This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes#4354).Discussion----------[WCM] Added depreciation note for the cascade_validation constraint| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | 2.8| Fixed tickets | -This PR was based onsymfony/symfony#12237 and has been updated basedassymfony/symfony#15019.#4348Commits-------22a87b5 Added depreciation note for the cascade_validation constraint and updated position of depreciation notes
@fabpotfabpot mentioned this pull requestNov 16, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@webmozart@Tobion@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp