DataManager always returns detached entities. There is a note about that in Audit docs secion
https://docs.jmix.io/jmix/audit/entity-log.html#register-changes
This placement may be not were most of developers read about entity state management. There must be secion explaining why state is not "managed" and how to deal with this for the best. Probably somewere nearby datamanager transactions section:
https://docs.jmix.io/jmix/data-access/data-manager.html#transactions
DataManager always returns detached entities. There is a note about that in Audit docs secion
https://docs.jmix.io/jmix/audit/entity-log.html#register-changes
This placement may be not were most of developers read about entity state management. There must be secion explaining why state is not "managed" and how to deal with this for the best. Probably somewere nearby datamanager transactions section:
https://docs.jmix.io/jmix/data-access/data-manager.html#transactions