public function GetSQLValues($value) { if (!$value instanceof ormCaseLog) { $value = new ormCaseLog(''); } $aValues = array(); $aValues[$this->GetCode()] = $value->GetText(); $aValues[$this->GetCode() . '_index'] = serialize($value->GetIndex()); return $aValues; }