Updated the mapping logic in the DTOs to delete associations.

Bidirectional associations are not updated correctly via the DTO
mapping logic. This commit fixes this.

Additionally, unidirectional relationships that werent updated
during deletion, are now updated.

This fixes WFK2-56.