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

Bundle does not handle numeric values #13

Open
frostieDE opened this issue Oct 5, 2019 · 0 comments
Open

Bundle does not handle numeric values #13

frostieDE opened this issue Oct 5, 2019 · 0 comments

Comments

@frostieDE
Copy link
Contributor

This bundle only supports Enums with string values. For instance, if you're using numeric enum values, creating the enum from a database value does throw this error:

Value '2' is not part of the enum App\YourEnum

The alternative Doctrine Enum Type supports value casting. I propose this library should support such feature as well.

PR is coming in later 😉

frostieDE added a commit to frostieDE/EnumBundle that referenced this issue Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant