Skip to main content
2 of 2
Fix typo
David Thomas
  • 21.9k
  • 2
  • 33
  • 68

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?