fresh / doctrine-enum-bundle
Provides support of ENUM type for Doctrine2 in Symfony applications.
Package info
github.com/fre5h/DoctrineEnumBundle
Type:symfony-bundle
pkg:composer/fresh/doctrine-enum-bundle
Fund package maintenance!
v12.0.1
2026-01-07 08:44 UTC
Requires
- php: >=8.4
- doctrine/common: ^3.4
- doctrine/dbal: ^4.0
- doctrine/doctrine-bundle: ^2.12||^3.0
- doctrine/orm: ^3.1
- symfony/config: ^7.4||^8.0
- symfony/dependency-injection: ^7.4||^8.0
- symfony/doctrine-bridge: ^7.4||^8.0
- symfony/framework-bundle: ^7.4||^8.0
- symfony/http-kernel: ^7.4||^8.0
- symfony/validator: ^7.4||^8.0
- twig/twig: ^3.22
Requires (Dev)
- escapestudios/symfony2-coding-standard: ^3.16
- friendsofphp/php-cs-fixer: ^v3.90
- jetbrains/phpstorm-attributes: ^1.0
- phpstan/phpstan: ^2.1.32
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^12.4
- rregeer/phpunit-coverage-check: ^0.3.1
- symfony/form: ^7.4||^8.0
This package is auto-updated.
Last update: 2026-05-26 18:36:20 UTC
README
📦 Provides ENUM type support for Doctrine in Symfony applications.
Supported platforms 🧐
| PostgreSQL | SQLite | MySQL | MSSQL |
|---|
Installation 🌱
composer req fresh/doctrine-enum-bundle
Choose the version you need
| Bundle Version (X.Y.Z) | PHP | Symfony | Doctrine Bundle | Comment |
|---|---|---|---|---|
12.0.* |
>= 8.4 |
>= 7.4 |
>= 2.12, >= 3.0 |
Current version |
11.2.* |
>= 8.2 |
>= 6.4 |
>= 2.12, >= 3.0 |
Previous |
Check the config/bundles.php file
By default, Symfony Flex will add this bundle to the config/bundles.php file.
But in case you ignored contrib-recipe during bundle installation it would not be added. In this case add the bundle manually:
# config/bundles.php return [ // Other bundles... Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle::class => ['all' => true], // Other bundles... ];
Usage 🧑🎓
Features 🎁
- NULL values
- Default value
- Building the form
- Additional methods
- Common types
- Readable ENUM values in templates
- ENUM constants in templates
- ENUM values in templates
- Hook for Doctrine migrations
Contributing 🤝
Read the CONTRIBUTING file.