Tablefield doesn't work with Entity Metadata Wrappers, the following error is thrown:

EntityMetadataWrapperException: Unknown data property field_table. in EntityStructureWrapper->getPropertyInfo() (line 335 of .../entity/includes/entity.wrapper.inc).

Property info callbacks need to be added for it to work properly with Entity API.
Ive made a quick patch, which allows me to access the data, but probably needs more work setting the 'property info' data and setting data.

CommentFileSizeAuthor
tablefield-property-type.patch1.04 KBchriz001

Comments

omarlopesino’s picture

Worked for me. Thanks.

mchelen’s picture

Any reason not to merge this?

  • vitalie committed 93675ec on 7.x-2.x authored by chriz001
    Issue #2179529 by chriz001: Property Info callback for Entity API
    
vitalie’s picture

Status: Active » Fixed

thx all, this is very basic, but useful, committed.

Status: Fixed » Closed (fixed)

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