What I want to try and achieve.
An authenticated user creates a node of type 'listing' (this node obviously belongs to this user via his uid). On this node will be a link to create a new node of a different content type 'booking-request' (this link the author can't control).
Now an anonymous user can view this created 'listing' node and then they can click on the link and create a 'booking-request' node. So obviously the 'booking-request' node will belong to the anonymous user.
My question is. How can I assign this 'booking-request' node to the author of the 'listing' node after the anonymous user saves it?
Can I do this with a module or will this need custom php or both and how will I do this?