added flush to deleteRelationship