$ids)); while ($result = $results->fetchObject()) { $cv = new stdClass(); $cv->internal_id = $result->cv_id; $cv->name = $result->name; $cv->format = 'OBO v1.4'; $cv->namespace = $result->namespace; $cv->url = $result->url; $cv->term_url = $result->urlprefix ? $result->urlprefix . '{id}' : ''; $queried_entities[$cv->internal_id] = $cv; } // Pass all entities loaded from the database through $this->attachLoad(), // which attaches fields (if supported by the entity type) and calls the // entity type specific load callback, for example hook_node_load(). if (!empty($queried_entities)) { // $this->attachLoad($queried_entities); $entities += $queried_entities; } // Ensure that the returned array is ordered the same as the original // $ids array if this was passed in and remove any invalid ids. return $entities; } }