Hi Folks,
I have the class below and am getting the error in the title. I have read other posts about this, but the problem does not seem related to the $searchable_fields array as you can see from the code:
The full error is
Error at sapphire/core/model/DataObject.php line 2492: Uncaught Exception: Unable to traverse to related object field [CDSEquivalent] on [SiennaEmploymentStatusCategory
class SiennaEducationalStatusCategory extends SiennaViewableData { //which extends DataObject
public static $db = array (
'EducationalStatusCategory' => 'Varchar(255)',
'EducationalStatusCategoryDetails' => 'HTMLText',
);
public static $has_one = array (
'CDSEquivalent' => 'SiennaCDSCategory',
);
//public static $has_many = array (
// 'EducationalStatusRecords' => 'SiennaEducationalStatus',
// );
public static $searchable_fields = array (
'ID',
'EducationalStatusCategory',
'EducationalStatusCategoryDetails'
);
public static $summary_fields = array (
'ID',
'EducationalStatusCategory',
'EducationalStatusCategoryDetails',
);
public static $singular_name = 'Education Status Category';
}
Please help!!