The correct way to load an ENUM field is to put the following code in the _cm_getValRep() method:
if ($item == 'enum_field') {
$array = $this->getEnum($item);
} // if
This obtains the array of values from the database, but is indexed from 1 not 0.
I think I should change the export function so that when it creates the array of values in the ?.dict.inc file it forces the first index to be 1, as follows:
'values' => array(1 => 'entered', 'modified', 'submitted', 'approved', 'rejected', 'deleted')
The reason that I stopped using ENUM fields in my code is that Radicore has to support other databases, and ENUM fields are unique to MySQL.