Message of the day:
Welcome. Latest release: https://www.silverstripe.org/download Community Forum: https://forum.silverstripe.org Features: https://forum.silverstripe.org/c/feature-ideas Archive: https://slackarchive.silverstripe.org
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Archive temporarily at https://archive.codingplayground.nl (redirect)
or an option set
e.g. via a dropdown field
you can’t do that… you’d need a map of value constants and you’d store that in the field as a free text
@MichalKleiner how would you define in varchar what you would before in enum?
it’s easier to add/reorder/update/migrate the list without breaking everything
fwiw we are moving from enums to varchars with code defined list of options
Wicked, I thought that was the case but just double checking
you can have as many spaces as you wish
When defining something like
$db = ['weekday' => 'Enum("Mon,Tues,Weds","Mon")'];, is it necessary to have no spaces in the Enum? I've seen this many times where there's no space after the comma.