KamoCRM

Use getReferenceById to avoid cascade orphanRemoval flush error on registration

FixSecurityService
Shipped
18 ஏப்ரல், 2026 அன்று 7:10 PM UTC
Author
Kamo
Commit
8829a3d

Loading Organization via findById inside @Transactional caused Hibernate to detect the features collection was de-referenced during auto-flush, throwing JpaSystemException. getReferenceById returns a lazy proxy without loading any collections.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing