/** * Delete method for fields deleting also fieldvalues, but not the data column in the comprofiler table. * For that, deleteColumn() method must be called separately. * * @param id of row to delete * @return true if successful otherwise returns and error message */ function deleteDataDescr($oid = null) { $fieldHandler = new cbFieldHandler(); $ret = $fieldHandler->adaptSQL($this, 'drop'); if ($ret) { $ret = $this->delete($oid); } return $ret; }