Any modifications to the entity will be ignored; the persisted state (ID, relationships) of the entity will be
deleted.
If a new entity is passed to this function, any persisted entity with matching ID & class will be deleted. No
error will be raised if a persisted entity is not matched.