Currently, the relationships created are backwards on the entref field: if I have a node with an entref to taxo terms, then a relationship is created for terms for 'nodes that point to the current term'.

But when you retrieve a node, the value for the entref field is just the IDs. If you want to get all the terms for that node, you have to retrieve each one.

It would therefore be handy to have this also defined as a Services relationship.

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new15.71 KB

This turned out to be a little trickier than I thought: in particular, remaining consistent with the 'fields' parameter and the two different resource plugins.

joachim’s picture

Hmm how to get the testbot to notice it now I've switched it on...?

Status: Needs review » Needs work

The last submitted patch, 1936472.services_entity.forward-relationships.patch, failed testing.

joachim’s picture

Status: Needs work » Needs review

Huh. Our tests are broken!

> Call to undefined function _services_entity_transform_fields()

joachim’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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