antiloop/propel-real-enum-behavior
最新稳定版本:3.0.0
Composer 安装命令:
composer require antiloop/propel-real-enum-behavior
包简介
Propel 2 behavior to manage the ENUM type more closely to what enums should be
README 文档
README
Requirements
This Behavior was developed for Propel 2.
It was also only tested for MariaDb databases for Spryker Webshops.
Installation
composer require antiloop/propel-real-enum-behavior
schema.xml
Add the behavior either to the root of your database or on the target table.
Here are two examples:
<database ...> <!-- This will add the real-enum behavior for all enums in the database --> <behavior name="real-enum"/> <table name="my_table"> <column name="my_enum" type="ENUM" valueSet="FIRST,SECOND,THIRD" /> </table> </database>
<database ...> <table name="my_table"> <!-- This will add the real-enum behavior for all enums in the table --> <behavior name="real-enum"/> <column name="my_enum" type="ENUM" valueSet="FIRST,SECOND,THIRD" /> </table> </database>
Usage
This behavior does one thing to make usage of ENUMS easier :
- You will now see the ENUM value from the
valueSetin the database instead of a number.
统计信息
- 总下载量: 5.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-05