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

Get future node id (nid) of nodes being pragrammaticlyprogrammatically created (future node)

Source Link

Get future node id (nid) of nodes being pragrammaticly 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?