hellorse / doctrine-enum-bundle
Provides support of ENUM type for Doctrine2 in Symfony applications.
Package info
github.com/hellorse/DoctrineEnumBundle
Type:symfony-bundle
pkg:composer/hellorse/doctrine-enum-bundle
Fund package maintenance!
v9.0.4
2022-12-07 07:24 UTC
Requires
- php: >=8.1
- doctrine/common: ^3.3
- doctrine/dbal: ^3.3
- doctrine/doctrine-bundle: ^2.6
- doctrine/orm: ^2.11
- symfony/config: ^6.1
- symfony/dependency-injection: ^6.1
- symfony/doctrine-bridge: ^6.1
- symfony/framework-bundle: ^6.1
- symfony/http-kernel: ^6.1
- symfony/validator: ^6.1
- twig/twig: ^3.4
Requires (Dev)
- escapestudios/symfony2-coding-standard: ^3.12
- jetbrains/phpstorm-attributes: ^1.0
- phpstan/phpstan: ^1.8
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^9.5
- slam/phpstan-extensions: ^6.0
- symfony/form: ^6.1
This package is not auto-updated.
Last update: 2026-07-17 06:31:22 UTC
README
📦 Provides support of ENUM type for Doctrine in Symfony applications.
Supported platforms 🧐
| PostgreSQL | SQLite | MySQL | MSSQL |
|---|
Installation 🌱
composer req fresh/doctrine-enum-bundle='~7.4'
Choose the version you need
| Bundle Version (X.Y.Z) | PHP | Symfony | Doctrine Bundle | Comment |
|---|---|---|---|---|
7.4.* |
>= 7.4.0 |
5.4 |
>= 2.5 |
Current version |
7.3.* |
>= 7.3.0 |
5.0..5.3 |
>= 2.1 |
Previous version |
Check the config/bundles.php file
By default, Symfony Flex will add this bundle to the config/bundles.php file.
But in case when 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... ];
Using 🧑🎓
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.