i am missing even where to correctly put this question, never mind solve. i've looked in entity prepopulate and others but no luck. feel free to move if you know of a better place.

i have a parent entity A with an entity reference pointing to entity B, it is a 1 to many from A to B, so an entity references field set to unlimited. using panels to override both entity A and B, i would like to have a link on node A (a node that already exists) that opens the form to create a new node B, and after saving node B, node A gets updated with that reference to node B. using panels context doesn't help, I assume I need a custom module to save the reference to the parent entity.

i thought that setting up the entity reference on the parent with an unlimited field would be simpler, but i think not now but it's too late to reverse.

any ideas on the best approach to solve this? thanks in advance for any help