I have a list of values for my Enum() field which has an option containing a comma. Unfortunately, due to accuracy of information on the site, I do not have the option to re-word this option.
Can anyone tell me how to escape commas in the Enum() values?
Thanks in advance.
EDIT: This is for Silverstripe 2.4.7
EDIT2: Here is the solution for Silverstripe 3. I have no tested this in 2 as I no longer use it.
'Income' => "Enum(array('Under £20,000','£20,000-£29,999','£30,000-£39,999','$40,000 and over'))"