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] Addingcallable tochoices#21003

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

Open
ThomasLandauer wants to merge1 commit intosymfony:6.4
base:6.4
Choose a base branch
Loading
fromThomasLandauer:patch-23

Conversation

ThomasLandauer
Copy link
Contributor

Page:https://symfony.com/doc/6.4/reference/forms/types/choice.html#choices

Passing something likeMyEnum::myChoices() to anEnumType works, so I guess it could be added here.

Secondly: The entirechoices option is missing athttps://symfony.com/doc/current/reference/forms/types/enum.html but IMO this is a viable alternative tochoice_filter to limit the choices to onlysome of the enum's cases.

Page:https://symfony.com/doc/6.4/reference/forms/types/choice.html#choicesPassing something like `MyEnum::myChoices()` to an `EnumType` works, so I guess it could be added here.Secondly: The entire `choices` option is missing athttps://symfony.com/doc/current/reference/forms/types/enum.html but IMO this is a viable alternative to `choice_filter` to limit the choices to only *some* of the enum's cases.
@carsonbotcarsonbot added this to the6.4 milestoneMay 26, 2025
@carsonbotcarsonbot changed the title[Form]: Addingcallable tochoices[Form] : Addingcallable tochoicesMay 26, 2025
@OskarStarkOskarStark changed the title[Form] : Addingcallable tochoices[Form] Addingcallable tochoicesMay 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

2 participants
@ThomasLandauer@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp