As described in #241 the EntityManager is currently not able to detect changes on entities. Therefore a second level cache could be implemented that holds copies (not references) of the cached entities in order to be able to compare the entities against those backups on save(..)