protected function load($guid)
{
$attr_loader = new \Elgg\AttributeLoader(get_class(), 'object', $this->attributes);
$attr_loader->requires_access_control = !$this instanceof \ElggPlugin;
$attr_loader->secondary_loader = 'get_object_entity_as_row';
$attrs = $attr_loader->getRequiredAttributes($guid);
if (!$attrs) {
return false;
}
$this->attributes = $attrs;
$this->loadAdditionalSelectValues($attr_loader->getAdditionalSelectValues());
_elgg_services()->entityCache->set($this);
return true;
}