Configures Doctrine Enum Type via Symfony config file.
composer require danaki/doctrine-enum-type-bundle
Create config/packages/doctrine_enum_type.yaml
with similar contents:
danaki_doctrine_enum_type:
types:
php_enum_gender: Acelaya\Enum\Gender
App\Enum\YourEnum: ~
If you're getting "Unknown column type" error, try to clear cache with rm -rf var/cache