fresh/doctrine-enum-bundle
DoctrineEnumBundle
📦 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.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
612,604,198
9,704
tommyknocker/pdo-database-class
Framework-agnostic PHP database library with unified API for MySQL, MariaDB, Pos...
6,139
82
activerecord
ai-analysis
ai-database-assistant
ai-powered
anthropic
batch-processing
bulk-operations
cli-tools
common-table-expressions
connection-pooling
connection-retry
cross-apply
cross-platform
csv-loader
cte
cursor-pagination
database
database-abstraction-layer
database-optimization-ai
dbal
ddl
deepseek
delete-join
dialect-specific-types
distinct-on
dump
error-diagnostics
event-dispatcher
except
exception-hierarchy
explain-analysis
export-helpers
filter-clause
fluent-api
framework-agnostic
full-text-search
google-ai
helper-functions
insert-select
intersect
json-loader
lateral-join
lightweight
load-balancing
mariadb
merge-statements
microsoft-ai
migrations
mssql
mysql
ollama
openai
oracle
orm
outer-apply
pagination
pdo
pdo-db
pdo-oci
pdodb
performance
php8
plugin-system
postgresql
prepared-statements
psr-14
psr-16
query-builder
query-caching
query-compilation-cache
query-debugging
query-macros
query-monitoring
query-optimization-ai
query-profiling
query-scopes
read-write-splitting
recursive-cte
regexp
relationships
restore
savepoints
schema-builder
schema-inspector
schema-introspection
security
seeds
set-operations
sharding
sql-builder
sql-formatter
sql-injection
sql-server
sqlite
table-locking
transactions
type-safe
union
update-join
upsert
user-management
validation
window-functions
xml-loader
yandex-ai
yii2-inspired
zero-dependencies
repat/laravel-medoo
Laravel Facade and ServiceProvider for The Lightest PHP database framework to ac...
248
5