Hopefully you mean the REFERENCEN.php ?
Here it is, the Names are german stuff, don't meantion it...
class Referenzen extends DataObject {
static $db = array(
'Ersteller' => 'Text',
'Kollektorart' => 'Text',
'Gebaeudeart' => 'Text',
'Dachtyp' => 'Text',
'Anlagengroesse' => 'Text',
'Standort' => 'Text',
'Stadt' => 'Text',
'Ertrag' => 'Text',
);
static $has_one = array(
'Image' => 'Image',
'MyMyReferences' => 'Referenz'
);
function getCMSFields_forPopup() {
$fields = new FieldSet();
$fields -> push( new TextField('Ersteller'));
$fields -> push( new DropdownField('Kollektorart','Kollektorart',singleton('Dropdown1')->dbObject('Kollektorart')->enumValues()));
$fields -> push( new DropdownField('Gebaeudeart','Gebaeudeart',singleton('Dropdown2')->dbObject('Gebaeudeart')->enumValues()));
$fields -> push( new DropdownField('Dachtyp','Dachtyp',singleton('Dropdown3')->dbObject('Dachtyp')->enumValues()));
$fields -> push( new DropdownField('Anlagengroesse','Anlagengroesse',singleton('Dropdown4')->dbObject('Anlagengroesse')->enumValues()));
$fields -> push( new DropdownField('Standort','Standort',singleton('Dropdown5')->dbObject('Standort')->enumValues()));
$fields -> push( new TextField('Stadt'));
$fields -> push( new TextField('Ertrag'));
$fields -> push( new ImageField('Image'));
return $fields;
}
}
class Dropdown1 extends DataObject {
static $db = array(
'Kollektorart' => "Enum('Standart-Kollektor,Schrägschnitt-Kollektor,Aufgeständerter Kollektor,Solardach Plus (mit PV),Schwimmbadheizung','Standart-Kollektor')"
);
}
class Dropdown2 extends DataObject {
static $db = array(
'Gebaeudeart' => "Enum('Einfamilienhaus,Mehrfamilienhaus,öffentliche Gebäude,Gewerbliche Gebäude,Landwirtschaftliche Anwesen,Denkmalgeschützte Gebäude,Sonstige Gebäude','Einfamilienhaus')"
);
}
class Dropdown3 extends DataObject {
static $db = array(
'Dachtyp' => "Enum('Ziegel rot,Ziegel dunkel,Schiefer,Sonstige','Ziegel rot')"
);
}
class Dropdown4 extends DataObject {
static $db = array(
'Anlagengroesse' => "Enum('bis 20m²,bis 30m²,bis 40m²,größer als 40m²','bis 20m²')"
);
}
class Dropdown5 extends DataObject {
static $db = array(
'Standort' => "Enum('Luxemburg,Deutschland,Belgien','Deutschland')"
);
}
I also get a getReferences Function within the Reference.php, there is HTML in use, but can this have an effect of the tablefield? it was the same 'error' just before i added HTMl content :) (btw getReferences builds a form)