Exception when deleting parent entity

Created on 10 February 2023, almost 2 years ago
Updated 9 November 2023, about 1 year ago

Problem/Motivation

1.Create new content type called school
2.Create node with title "Rockford school":
3.Create another content type called student
4.Create field called "School" in student content type > entity reference to content> referenced to School
5.in the same field enable "always delete" for :
Behavior for Content entities referenced by this field when their parent Content entity is deleted

6.Create new node of Student content type with reference to School

Example :
Student Coaston
School entity reference : Rockford school

Now go to node Rockford school and delete it and following error occurs:

The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: Field field_school is unknown. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 759 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024