When I wrap an entity with entity_metadata_wrapper, at the end of the process it is tedious to call entity_view().
A helper method would be great.

Files: 
CommentFileSizeAuthor
#1 entity-1712400-1.patch655 bytestim.plunkett
PASSED: [[SimpleTest]]: [MySQL] 354 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new655 bytes
PASSED: [[SimpleTest]]: [MySQL] 354 pass(es).
[ View ]

See attached.

Hello tim.plunkett,

I am working with Drupal 7 and have installed the latest version of Entity API. Every time I try to create a sparql views resource type I get the following error. Would you be able to help with this?

<?php
EntityMetadataWrapperException
: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 735 of /wwww/sites/all/modules/entity/includes/entity.wrapper.inc).
?>

Thanks.

Hello there again,

I have been trying to add a sparql endpoint registry and always bump into errors related to the module as shown below. Would you be able to assist in checking this error message?

Warning: Illegal offset type in isset or empty in entity_get_info() (line 7524 of /www/includes/common.inc).
Warning: Illegal offset type in isset or empty in entity_metadata_wrapper() (line 1086 of /www/sites/all/modules/entity/entity.module).
Warning: strpos() expects parameter 1 to be string, object given in entity_property_list_extract_type() (line 307 of /www/sites/all/modules/entity/includes/entity.property.inc).
Warning: Illegal offset type in isset or empty in entity_get_controller() (line 7676 of /www/includes/common.inc).
Warning: Illegal offset type in isset or empty in entity_get_info() (line 7524 of /www/content/www/includes/common.inc).

Before the above error I first get the following one Fatal error: Class name must be a valid object or a string in /includes/common.inc on line 7679

Thanks in advance for your help.

How is this related to this issue?

Sorry.

Status:Needs review» Fixed

Good idea, committed.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.