Give the gift of Drupal. All merchandise is 50% off through 2016.
This is probably really basic, but I have Googled a lot and still can't find a good anwser.
When the user submits a node form for node type A, a second node of type B is programmatically created in a custom validation function. Now I want to set a node reference field in the node to be created (of type A) to point to the newly created node (of type B). What is the best way to do this?