Open derrabus opened 1 month ago
The have a cookbook article on how to map to MySQL enums. This article is a bit outdated:
VARCHAR
enumType
Types::ENUM
ENUM
The have a cookbook article on how to map to MySQL enums. This article is a bit outdated:
VARCHAR
and validate input in the entity's mutators. However, PHP enums and ourenumType
feature simplify things around here.Types::ENUM
which should be preferred over implementing custom types forENUM
fields.