Mark an entity as deleted.
This can be used when an entity is deleted directly using a SQL or HQL query to synchronize the state
of the entity with the database. This will cause that Entity.getState() will return
Entity.State.PHANTOM.
This is mainly used internally. Normally Entity.delete() should be used.