Skip to content
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 our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:entity] add enum support #1534

Merged
merged 3 commits into from May 19, 2024
Merged

Conversation

loicsapone
Copy link
Contributor

@loicsapone loicsapone commented May 3, 2024

Hi 馃憢

The purpose of this PR is to add support for enumerations when creating an entity.
Instead of introducing a new field type, I've opted to add a prompt to supplement a text field with the enumType option.


Edit by @jrushlow
fixes #1440 fixes #1233

Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

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

Howdy @loicsapone - Thank you for getting this going! I do have one change that we need to address before we can move forward with the review / merge.

Side note: this fixes #1440

src/Maker/MakeEntity.php Outdated Show resolved Hide resolved
@jrushlow jrushlow added Feature New Feature Status: Needs Work Additional work is needed labels May 6, 2024
@jrushlow jrushlow added this to the v1.60.0 milestone May 6, 2024
@loicsapone
Copy link
Contributor Author

@jrushlow I've pushed the new "enum" type under the "other" category
With the new type, I've been able to add support for multiple enums

@loicsapone loicsapone requested a review from jrushlow May 6, 2024 19:23
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

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

Look's good, let's run with it! Thank you @loicsapone

@jrushlow jrushlow merged commit 6408fca into symfony:main May 19, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Status: Needs Work Additional work is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make:entity and enums make:entitiy: Suggestion: Add enumType
2 participants