Project

General

Profile

« Previous | Next » 

Revision f00c6f98

Added by Andreas Kohlbecker over 3 years ago

ref #9279 adapting class attribute handling to TypeDesignationDTO

View differences:

modules/cdm_dataportal/cdm_api/commons.php
219 219
 */
220 220
function is_cdm_entity($object) {
221 221
  return
222
    isset($object->class) && is_string($object->class) && strlen($object->class) > 2 && $object->class != 'TypedEntityReference'
223
    && is_string($object->uuid) && is_uuid($object->uuid);
222
    isset($object->class) && is_string($object->class) && strlen($object->class) > 2
223
    && !(str_endsWith($object->class, 'EntityReference') || str_endsWith($object->class, 'DTO'))
224
    && is_uuid($object->uuid);
224 225
}

Also available in: Unified diff