Get future node id (nid) of nodes being programmatically created (future node) I want to create multiple nodes using one form, but I'd like to have connection between them stored in Entity Reference, so I need to know their nids. But they aren't created yet, so they hasn't nids.

Question: Is there a way to predict future nodes nids and preserve them for a while or do something similar to deal with task above?
Unfortunately, there's no a clean way to do that!