positibe / enum-bundle
Symfony PositibeEnumBundle
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- stof/doctrine-extensions-bundle: 1.3.*
- symfony/framework-bundle: ~3.0||~4.0
- twig/extensions: ~1.0
This package is not auto-updated.
Last update: 2025-03-03 01:17:22 UTC
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: