#12642·orm

orphanRemoval 删除仍在集合中的实体 (remove() 不会重新检查成员身份)

作者: greedyivan创建于 2026年9月30日更新于 2026年9月30日

Summary

An element can be in a one-to-many collection more than once — added twice with add(), or held under two indexBy keys. Dropping one occurrence with remove() deletes the entity's row at flush, although the element never left the collection.