protected function checkForChangedRelations()
    {
        foreach ($this->entityRegistry->getEntities() as $entity) {
            $meta = $this->entityRegistry->getMeta($entity);

            foreach ($meta->relations['belongsTo'] as $relation) {
                $this->checkBelongsToRelation($entity, $relation);
            }

            foreach ($meta->relations['hasOne'] as $relation) {
                $this->checkHasOneRelation($entity, $relation);
            }

            foreach ($meta->relations['hasMany'] as $relation) {
                /*
                 * We are handling a Master and checking the Details.
                 * Details[i]->masterId = Master->id
                 * or
                 * We are handling a Master and checking the children.
                 * Children[i]->parentId = Master->id
                 */
            }

            foreach ($meta->relations['hasManyThrough'] as $relation) {
                /*
                 * We are handling a Master and checking the Tags.
                 * Map[i]->masterId = Master->id
                 * Map[i]->tagId = Tag->id
                 */
            }
        }
    }