23481 Posts in 18965 Topics by 2878 members
|Go to End|
14 May 2011 at 2:45am
This might be a dumb question but...
I've got an enum with really long names in it...
...it's getting far too long and really annoying, is there another way to specify these or should I start make ABR (abreviations) for them?
14 May 2011 at 1:07pm
I would recommend using abbreviations and have a map somewhere in your PHP which maps the abbreviated version to the full version if you need. That or just don't use enums (just use strings) and store the list of strings elsewhere.
12 January 2013 at 4:59am Last edited: 12 January 2013 5:25am
Found an answer to this... if you switch it to be an array then it can parse line breaks as each item is quoted - happy days!
static $db = array(
'Name' => 'Varchar(255)',
'Type' => "Enum(
|Go to Top|