Hi
I have built an extension to DataObjectDecorator. It seems to work fine until I add an an element with an Enum field. I have
class MemberExtension extends DataObjectDecorator {
function extraDBFields() {
return array(
'db' => array(
'DirName'=>'Varchar',
'IncludeInDirectory' => "Enum('t,f','t')", ...
public function updateCMSFields(FieldSet &$fields) {
$fields->addFieldToTab('Root.Directory',new TextField("DirName", "Directory Name"));
$fields->addFieldToTab('Root.Directory',new DropdownField("IncludeInDirectory", "Include In Directory?",singleton('MemberExtension')->dbObject('IncludeInDirectory')->enumValues() )); ...
not sure if I should be using this singleton or whether I am heading down the wrong track, anythoights?
Thanks
MM