Documentation on MySQL enums needs an update #7430

Open
opened 2026-01-22 15:51:37 +01:00 by admin · 0 comments
Owner

Originally created by @derrabus on GitHub (Oct 12, 2024).

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.
Originally created by @derrabus on GitHub (Oct 12, 2024). 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.
admin added the Documentation label 2026-01-22 15:51:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7430