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

Correct documentation about embedded forms #4346

Closed
Labels
FormactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)
@webmozart

Description

@webmozart

Currently, thedocumentation about embedded forms is incorrect. The documentation states that the "cascade_validation" option should be used to enable validation of the embedded form. This is wrong. Instead, one should set theValid constraint on the respective property in the model.

The "cascade_validation" option was introduced to solve a very rare use case, namely when embedded forms have the "mapped" option set tofalse. This use case can also be solved using theValid constraint as of 2.5. Thus "cascade_validation" will be deprecated in 2.6.

More information in the deprecation ticket:symfony/symfony#12237

Metadata

Metadata

Assignees

No one assigned

    Labels

    FormactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp