Use PHP Enums as Doctrine type in Symfony
PHP 8.1 adds support for Enumerations. An Enumeration, is an enumerated type that has a fixed number of possible values. (see more details)
✍🏻 In this article, I’ll show you how to use an Enum as a doctrine WITHOUT adding configuration.
First, what is a doctrine type?