hellorse/doctrine-enum-bundle
最新稳定版本:v9.0.4
Composer 安装命令:
composer require hellorse/doctrine-enum-bundle
包简介
Provides support of ENUM type for Doctrine2 in Symfony applications.
关键字:
README 文档
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.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-07