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

More concrete explanation of validation groups#4454

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

Closed
peterrehm wants to merge1 commit intosymfony:masterfrompeterrehm:validation-groups
Closed

More concrete explanation of validation groups#4454

peterrehm wants to merge1 commit intosymfony:masterfrompeterrehm:validation-groups

Conversation

peterrehm
Copy link
Contributor

QA
Doc fix?yes
New docs?no
Applies toall
Fixed tickets-

Improved the explanation of default validation groups in reference with my discussion with@webmozart in symfony/symfony#�11880.

$groups = array_merge($groups, array('company'));
}

return $groups;
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be easier to replace lines 569 to 577 by something like this?

if (Entity\Client::TYPE_PERSON ==$data->getType()) {returnarray('Default','person');}returnarray('Default','company');

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Could be changed that way if wanted, I prefer it this way to show that the Default is the base and you are adding based on your domain requirements.

Copy link
Contributor

Choose a reason for hiding this comment

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

xabbuh 👍

Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit in favor of@xabbuh's proposal. Shorter code (without making it less readable) is easier to understand most of the time

@peterrehm
Copy link
ContributorAuthor

@xabbuh Should be finished from my side.

.. caution::::

You must be aware that there is a substantial difference between the ``Default`` and the
``User`` group. Both do not have any different effect on the ``Uer`` entity. However, if
Copy link
Contributor

Choose a reason for hiding this comment

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

Uer?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks, is updated.

@peterrehm
Copy link
ContributorAuthor

Updated as per@weaverryan's comments. I would be in favor of getting this merged and the extract or add a cookbook entry.


.. caution::

You must be aware that there is a substantial difference between the ``Default``group and the
Copy link
Member

Choose a reason for hiding this comment

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

missing space afterDefault

@peterrehm
Copy link
ContributorAuthor

Updated. I have combined Ryans wording with my information about inheritance.

weaverryan added a commit that referenced this pull requestJan 3, 2015
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#4454).Discussion----------More concrete explanation of validation groups| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets | -Improved the explanation of default validation groups in reference with my discussion with@webmozart in symfony/symfony#�11880.Commits-------81728b6 More concrete explanation of validation groups
@weaverryan
Copy link
Member

Yay! I've merged this in - thanks Peter for "exploring" this with us. I did add one more commit, whichdoes need review for accuracy: sha:09f9d3d. This re-words the last paragraph, but I'm actually not sure if it's accurate. Please let me know if it's not.

Thanks!

weaverryan added a commit that referenced this pull requestJan 3, 2015
* 2.3: (33 commits)  Fixing bad reference  [#4743] parts -> part - subjective, but this sounds slightly better to me  Update web_server_configuration.rst  Update web_server_configuration.rst  Update web_server_configuration.rst  Add exception to console exception log  [#4454] Re-wording section, but it may not actually be accurate  More concrete explanation of validation groups  Adding missing index/map documents  [#4611] A few more tweaks and fixes  Basically copying a section about upgrading other libraries down into the minor version section  [#4611] Removing a few entries I meant to remove before  [#4611] Making many tweaks thanks to guys like Javier, Wouter, Christian (xabbuh) and Stof  Adding a guide about upgrading  Fix typo and remove redundant sentence  [Reference] Add default_locale config description  Clarify tip for creating a new AppBundle  Update forms.rst  Rewroded some contents and fixed some lists of elements  MAde some tweaks suggested by Wouter  ...Conflicts:book/http_cache.rst
weaverryan added a commit that referenced this pull requestJan 3, 2015
* 2.5: (35 commits)  Fixing bad reference  [#4743] parts -> part - subjective, but this sounds slightly better to me  Update web_server_configuration.rst  Update web_server_configuration.rst  Update web_server_configuration.rst  Add exception to console exception log  [#4454] Re-wording section, but it may not actually be accurate  More concrete explanation of validation groups  Adding missing index/map documents  [#4611] A few more tweaks and fixes  Basically copying a section about upgrading other libraries down into the minor version section  [#4611] Removing a few entries I meant to remove before  [#4611] Making many tweaks thanks to guys like Javier, Wouter, Christian (xabbuh) and Stof  Adding a guide about upgrading  Fix typo and remove redundant sentence  document the `2.5` validation options  [Reference] Add default_locale config description  Clarify tip for creating a new AppBundle  Update forms.rst  Rewroded some contents and fixed some lists of elements  ...Conflicts:book/security.rst
weaverryan added a commit that referenced this pull requestJan 3, 2015
* 2.7: (36 commits)  Fixing bad reference  [#4743] parts -> part - subjective, but this sounds slightly better to me  Update web_server_configuration.rst  Update web_server_configuration.rst  Update web_server_configuration.rst  Add exception to console exception log  [#4454] Re-wording section, but it may not actually be accurate  More concrete explanation of validation groups  Adding missing index/map documents  [#4611] A few more tweaks and fixes  Basically copying a section about upgrading other libraries down into the minor version section  [#4611] Removing a few entries I meant to remove before  [#4611] Making many tweaks thanks to guys like Javier, Wouter, Christian (xabbuh) and Stof  Adding a guide about upgrading  Fix typo and remove redundant sentence  Formatting fix  document the `2.5` validation options  [Reference] Add default_locale config description  Clarify tip for creating a new AppBundle  Update forms.rst  ...
@peterrehmpeterrehm deleted the validation-groups branchJanuary 4, 2015 11:03
weaverryan added a commit that referenced this pull requestJan 5, 2015
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes#4775).Discussion----------Corrected validation information on inheritance| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets | -| Related |#4454Minor fix as per Discussion09f9d3d#commitcomment-9150852Commits-------230c4fc Corrected validation information on inheritance
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.

5 participants
@peterrehm@weaverryan@timglabisch@wouterj@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp