2017 © Pedro PelĂĄez
 

symfony-bundle enum-bundle

Symfony PositibeEnumBundle

image

positibe/enum-bundle

Symfony PositibeEnumBundle

  • Thursday, February 8, 2018
  • by pcabreus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PositibeEnumBundle

This bundle give a simple way to have all enum type in to table., (*1)

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., (*2)

With this bundle you can simple have a relation we Enum class and define the EnumType class for it., (*3)

Example

#app/config/config.yml
#...
positibe_enum:
    enum_types:
        sex:
            _name: Sexo #Optional name description
            male: Masculino
            female: Femenino
        organism:

The Versions