When a record is soft-deleted, FK references from other records were left
dangling, causing the frontend to show "Not shared" (ForbiddenFieldDisplay)
instead of an empty cell. This mimics PostgreSQL's ON DELETE SET NULL
constraint behavior at the application level for soft-deletes.
Closes#20076
Co-authored-by: Cursor <cursoragent@cursor.com>