I have a node that holds an entity reference field (multi value) to other nodes, all the referenced nodes of the same type.
In the referenced nodes I have a computed field that do some calculations. Also, in the parent node I have a computed field that takes calculated values from referenced nodes and do other calculations. All the values are stored in DB.
What I need is every time a referenced node is saved, also to re-save (update) the parent node, so that computed field can make the calculations using the new values from the referenced node.
Is it possible to get the NID of the parent node in the referenced node computed field, so I can add some code to launch the parent re-save?
All I can think right now is using SQL or adding a field (in referenced nodes) that will hold the parent NID when the referenced nodes are created; is it another way?