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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make:entitiy: Suggestion: Add enumType #1233

Closed
ThomasLandauer opened this issue Nov 11, 2022 · 1 comment · Fixed by #1534
Closed

make:entitiy: Suggestion: Add enumType #1233

ThomasLandauer opened this issue Nov 11, 2022 · 1 comment · Fixed by #1534
Labels
Feature New Feature HasPR Status: Reviewed Has been reviewed by a maintainer

Comments

@ThomasLandauer
Copy link
Contributor

ThomasLandauer commented Nov 11, 2022

I'm suggesting to add this possible outcome to the wizard:

#[ORM\Column(nullable:true, enumType: Suit::class)]
private ?Suit $suit = null;

Maybe via a dedicated enum entry in the types list, then by inferring the actual type (i.e. string or int) from the enum itself.

@jrushlow jrushlow added Feature New Feature Status: Needs Review Needs to be reviewed labels Nov 14, 2022
@crassaert
Copy link

There was a feature to convert enum strings to value introduced in v1.43.0 but disappeared in v1.44.0, I dunno why ...

e09a55b

@jrushlow jrushlow added Status: Reviewed Has been reviewed by a maintainer HasPR and removed Status: Needs Review Needs to be reviewed labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature HasPR Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants