How to easily create and reference a node / entity during creation of another one? I have the task of attaching two entities to each other, and both may not exist yet. So what I'd like is to create the second entity along with the first one if it does not exist yet.

So in the case of having a task and attaching persons, assume I already have created a person. Then I would like to add him to the task by typing in his name.
But at the same time, when editing a task and the field does not find a name, I like to receive the option to create the person entity on demand. 

Are there recommendations as of how to approach this?
The References dialog module might be an option (if you're using the references project).


  This module extends reference fields like the user and node reference fields by adding links to add, edit and search for references through a dialog. This allows for a workflow where the user can create all the references to a node at the same time as she is creating it, a process which sometimes get's a bit backwards, when a user for instance needs to create all the facts for an article.


It doesn't do exactly what you've described, but it's pretty close.