I'm currently building a dropdown list based on the enum:
'Duration' => "Enum('1,2,3,4,5,6,7,8,9,10',5)"
It seems to be working fine on the form using:
$this->dbObject('Duration')->enumValues())
The only weird behavior, is every time I do a dev/build, it attempts to redefine the field with:
Field PromotionBanner.Duration: changed to enum('1','2','3','4','5','6','7','8','9','10') character set utf8 collate utf8_general_ci default '5' (from enum('1','2','3','4','5','6','7','8','9','10') character set utf8 collate utf8_general_ci default 5)
I've also tried:
'Duration' => "Enum('1,2,3,4,5,6,7,8,9,10','5')"
and got the same behavior.
Edit: taking out the default value completely results in:
Field PromotionBanner.Duration: changed to enum('1','2','3','4','5','6','7','8','9','10') character set utf8 collate utf8_general_ci default '1' (from enum('1','2','3','4','5','6','7','8','9','10') character set utf8 collate utf8_general_ci default 1)
every dev/build also.
It seems mysql is interpreting the default as an integer instead of a string upon assignment.