Delete relation in `docrel` when docid attr value is deleted (closes #3534)
Merge pull request #637 from eguaj/3.1-A3534

Delete relation in `docrel` when docid attr value is deleted (closes #3534)