fresh/doctrine-enum-bundle
Symfony bundle adding ENUM type support to Doctrine ORM/DBAL. Register custom enum types and map them to entity fields for safer, consistent values across databases. Works with modern Symfony/Doctrine versions and common platforms like PostgreSQL, MySQL, SQLite, and MSSQL.
📦 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 |
|---|---|---|---|---|
12.0.* |
>= 8.4 |
>= 7.4 |
>= 2.12, >= 3.0 |
Current version |
11.2.* |
>= 8.2 |
>= 6.4 |
>= 2.12, >= 3.0 |
Previous |
config/bundles.php fileBy 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...
];
Read the CONTRIBUTING file.
How can I help you explore Laravel packages today?