Hi. I got this trying to wrap the entity of type node
EntityMetadataWrapperException: Unknown data property field_usr. in EntityStructureWrapper->getPropertyInfo() (line 335 of /var/www/extranet/sites/all/modules/entity/includes/entity.wrapper.inc).

field_usr -- is field of type entityreference
node bundle i am trying to wrap has no this field
version of module 1.7

code that produces error

$ent = entity_load('node', array(1));
entity_metadata_wrapper('node', $ent, array('bundle'=>'Page'));

bundle is optional

Comments

Mykola Dolynskyi created an issue. See original summary.

apaderno’s picture

Version: 7.x-1.7 » 7.x-1.x-dev
Issue tags: -getPropertyInfo(), -EntityMetadataWrapperException