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

2.0.0 2018-02-08 03:31 UTC

This package is not auto-updated.

Last update: 2024-04-28 21:20:50 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: