When using this entity for tools like the Rules module, It really needs to be possible to traverse from the webform_submission entity to the webform node, and user entities. That is currently not possible because NID and UID are defined in the entity_property_info as INT data types, when they should be defined as NODE and USER types. Here's a discussion about the correct way to define these: https://www.drupal.org/node/1021466 note:

n case of properties containing entity references like "uid" one should not expose an "uid" integer property, but a property that exposes the entity relationship. Just expose a property "user" or "author" of type "user"

The attached patch gets rid of the NID and UID properties, and creates NODE and USER properties, and establishes them as links based on the NID and UID fields to their respective entities. this allows for situations like rules to access webform_submission:node:created to access elements deeper than just the submission.

Hope this helps!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

netw3rker created an issue.