Complete create entity with related entities and fixed delete entity to
work with related entities.