Using the synchronize feature for back-referencing:

If I remove a node where two nodes were referenced shouldn’t this remove the corresponding node also (i.e. sync and delete both sides)? In my case it only removes the one side so you have to go to the other node and remove the original connection made.

CommentFileSizeAuthor
#2 1269224_hook_entity_delete_2.patch1.64 KBslashrsm

Comments

jm.federico’s picture

Title: Synchronize removal of two references. » Implement hook_entity_delete to synchronize removal of two references.
Category: support » task

Yeap, it sound logical, changing title, to better reflect what needs done.

slashrsm’s picture

Status: Active » Needs review
StatusFileSize
new1.64 KB

Patch attached.

jm.federico’s picture

Thanks for the patch, will review and commit!

Cheers

jm.federico’s picture

Status: Needs review » Fixed

Committed to dev.
Will be available in beta2

Cheers

jm.federico’s picture

Status: Fixed » Needs work

This functionality will probably be removed once #1368386: Delete references to deleted entities makes it to Entity Reference.