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

add error_mapping form option documentation#2694

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
weaverryan merged 5 commits intosymfony:2.1fromdocteurklein:patch-2
Jun 22, 2013
Merged

add error_mapping form option documentation#2694

weaverryan merged 5 commits intosymfony:2.1fromdocteurklein:patch-2
Jun 22, 2013

Conversation

docteurklein
Copy link
Contributor

QA
Doc fix?yes
New docs?yes
Applies to2.1+
Fixed tickets~

seehttp://symfony.com/blog/form-goodness-in-symfony-2-1#error-mapping-fu

| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | yes| Applies to    | 2.1+| Fixed tickets | ~seehttp://symfony.com/blog/form-goodness-in-symfony-2-1#error-mapping-fu

With customized error mapping, you can do better: make the error be mapped to the city field.

Here are to understand the left and the right side of the mapping:
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Here are the rules to understand.

@wouterj
Copy link
Member

You also need to include this is relevant form fields, otherwise this document is useless

@docteurklein
Copy link
ContributorAuthor

Yes, I was not sure to include all the example from the news blog post. Should I ?

@wouterj
Copy link
Member

And you need to add a veresionadded 2.1 directive

@wouterj
Copy link
Member

@docteurklein I meaned you need to include this is in one or more form field reference documents (e.g, reference/forms/types/form )

@docteurklein
Copy link
ContributorAuthor

ha! yes indeed. I discussed it with@weaverryan and will do that as soon as possible.

@docteurklein
Copy link
ContributorAuthor

@wouterj here it is.

@wouterj
Copy link
Member

thanks@docteurklein However 2 things:

  • be sure to line the last| of the table row at the same level as the others, otherwise the table will broken
  • wrap the lines after the first word that crosses the 72th character

@docteurklein
Copy link
ContributorAuthor

ok thanks! Forgot to check that.

@docteurklein
Copy link
ContributorAuthor

@wouterj I think it's ok now.

* The right side contains simply the names of fields in the form.

.. versionadded:: 2.1
The ``error_mapping`` option is new to Symfony 2.1.
Copy link
Member

Choose a reason for hiding this comment

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

please put this directive on line 1 (before the title)

@wouterj
Copy link
Member

👍 (except that last comment), thank you!

@docteurklein
Copy link
ContributorAuthor

my pleasure !

weaverryan added a commit that referenced this pull requestJun 22, 2013
add error_mapping form option documentation
@weaverryanweaverryan merged commit0c0ebda intosymfony:2.1Jun 22, 2013
weaverryan added a commit that referenced this pull requestJun 22, 2013
@weaverryan
Copy link
Member

Brilliant guys! Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@docteurklein@wouterj@weaverryan

[8]ページ先頭

©2009-2025 Movatter.jp