📦 Provides ENUM type support for Doctrine in Symfony applications.
PostgreSQL | SQLite | MySQL | MSSQL |
---|
composer req fresh/doctrine-enum-bundle
Bundle Version (X.Y.Z) | PHP | Symfony | Doctrine Bundle | Comment |
---|---|---|---|---|
11.0.* |
>= 8.2 |
>= 7.0 |
>= 2.12 |
Current version |
10.1.* |
>= 8.2 |
>= 7.0 |
>= 2.11 |
Previous |
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...
];
- 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
Read the CONTRIBUTING file.