KamoCRM

Remove eager feature-loading from getOrganizationByDomain

Refactorkamo-shared-library
Shipped
18 ஏப்ரல், 2026 அன்று 7:25 PM UTC
Author
Kamo
Commit
f5367d5

Features are an org-level concern unrelated to most callers of this method (e.g. registration, login domain resolution). Force-loading them via setFeatures() replaced the Hibernate-tracked collection, causing cascade orphanRemoval errors. Features lazy-load naturally via JPA for any caller that actually needs them.

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