πΊπΈUnited States Brandon Mok
In the patch from #16, I noticed the check that determines if a child needs to be updated was always evaluating to TRUE for this particular condition $child_entity->id() !== $entity->id
. The accessing of the entity's id through $entity->id
was observed to return a NULL value every time despite there being a parent entity; thereby, resulting in a truthy check.
Based on the #16 patch, the included patch and interdiff updates the condition so that the accessing of the entity's id is through the id()
method of the EntityInterface: $entity->id()
.