use of doctrine's deprecated/removed EntityManager#detach and EntityManager#merge functionality and instead implements explicit synchronization including attachments (keeping existing alive and updating instead)
orphan removal of attachments
attachment file ownership (= deleting file when deleting attachment)
This also improves the purging option because tracked files are now purged as well.
This implements/fixes:
EntityManager#detach
andEntityManager#merge
functionality and instead implements explicit synchronization including attachments (keeping existing alive and updating instead)This also improves the purging option because tracked files are now purged as well.