تخطَّ إلى المحتوى

Missing Transaction For Multi-Write (ARCH8065)

هذا المحتوى غير متوفر بلغتك بعد.

Key kotlin.orm.missing-transaction-for-multi-write · Severity warning · Category orm

Flags two or more save / delete calls reachable on the SAME path with no @Transactional or transaction { } around them. Writes in different branches of one when/if run one at a time and are not counted.

fun transfer() { from.save(); to.save() }
@Transactional
fun transfer() { from.save(); to.save() }

Wrap dependent writes in one transaction.