I have a rule that creates a new node of another type upon the creation of a new node.
For example, when someone creates a node 'member_primary_information', a 'member_secondary_information' node is created.
What's not working is when I create to auto create a node reference from primary to secondary information.
I use the populate field action on the noderef field, and in the php:
return array( 0 => array('nid' => $member_secondary_information->nid), );
This does not work.
On the otherhand, if I do
return array( 0 => array('nid' => $node->nid), );
This works fine, of course that's not what I want, that would make the node reference itself, but just as a test.
So referencing to the secondary node with the primary node doesn't work for some reason. Could it be that the secondary node isn't created in time to be referenced?
Thanks in advance.