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

Documentation on MySQL enums needs an update #11668

Open
derrabus opened this issue Oct 12, 2024 · 0 comments
Open

Documentation on MySQL enums needs an update #11668

derrabus opened this issue Oct 12, 2024 · 0 comments

Comments

@derrabus
Copy link
Member

The have a cookbook article on how to map to MySQL enums. This article is a bit outdated:

  • We suggest to map to VARCHAR and validate input in the entity's mutators. However, PHP enums and our enumType feature simplify things around here.
  • DBAL 4.2 ships an Types::ENUM which should be preferred over implementing custom types for ENUM fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant