positibe/enum-bundle
Composer 安装命令:
composer require positibe/enum-bundle
包简介
Symfony PositibeEnumBundle
README 文档
README
This bundle give a simple way to have all enum type in to table.
Introduction
When we are working with many classes that only have one field like 'name' or 'code' e.j. gender, category, state, etc. We frequently create a class/table for each one, but in long web site we will have many of this classes so the schema could be huge.
With this bundle you can simple have a relation we Enum class and define the EnumType class for it.
Example
#app/config/config.yml
#...
positibe_enum:
enum_types:
sex:
_name: Sexo #Optional name description
male: Masculino
female: Femenino
organism:
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-06