Download the PHP package kodalto/propel-real-enum-behavior without Composer
On this page you can find all versions of the php package kodalto/propel-real-enum-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kodalto/propel-real-enum-behavior
More information about kodalto/propel-real-enum-behavior
Files in kodalto/propel-real-enum-behavior
Download kodalto/propel-real-enum-behavior
More information about kodalto/propel-real-enum-behavior
Files in kodalto/propel-real-enum-behavior
Vendor kodalto
Package propel-real-enum-behavior
Short Description Propel 2 behavior to manage the ENUM type more closely to what enums should be
License MIT
Package propel-real-enum-behavior
Short Description Propel 2 behavior to manage the ENUM type more closely to what enums should be
License MIT
Please rate this library. Is it a good library?
Informations about the package propel-real-enum-behavior
Propel Real Enum Behavior
Requirements
This Behavior was developed for Propel 2.
It was also only tested for MySQL databases, if you wish to test it or adjust it for another database type, feel free to open an issue.
Installation
schema.xml
Add the behavior either to the root of your database or on the target table.
Here is an example :
Usage
This behavior does 2 things to make usage of ENUMS
easier :
- You will now see the ENUM value from the
valueSet
in the database instead of a number. - Model classes will now have constants to easily access the enum values. Using the example above we could get a value from the value set like this :
MyTable::MY_ENUM_SECOND
All versions of propel-real-enum-behavior with dependencies
PHP Build Version
Package Version
The package kodalto/propel-real-enum-behavior contains the following files
Loading the files please wait ....