I'm trying to write a custom PHP action in Rules module. Each time after creation of a certain type of content, it should create an additional node with a reference to the created node.( Field by Node reference module )
I've tried to pass the values of nid and/or title of the main node to this field using tokens and it didn't work.
If the field is a text field it passes the variables correctly.
What value should be passed to the node reference field to set it in code?