Closed (duplicate)
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2012 at 13:49 UTC
Updated:
12 Apr 2013 at 21:28 UTC
To reproduce:
- create a new node type N
- create a user reference field in N
- create a new user U
- create a new node of type N
- reference U in the user reference field in the node
- now delete U
- now try to either save or delete the new node
- you will get an error 'this user can't be referenced.'
I believe the same problem exists with other reference types, such as node or taxonomy.
To fix:
Delete references when the referenced objects are deleted. David Rothstein's approach seems to be a good one: http://drupal.org/sandbox/drothstein/1775816
I am using this module now but it would be better if it were a part of entityreference.
Regards,
Bas
Comments
Comment #1
dave reidThis is a duplicate of #1368386: Delete references to deleted entities