fun hasParent()

in dnq-transient-store/src/main/kotlin/com/jetbrains/teamsys/dnq/database/EntityMetaDataUtils.kt [36:43]


    fun hasParent(emd: EntityMetaData, e: TransientEntity, tracker: TransientChangesTracker): Boolean {
        val aggregationChildEnds = emd.aggregationChildEnds
        return if (e.isNew || parentChanged(aggregationChildEnds, tracker.getChangedLinksDetailed(e))) {
            aggregationChildEnds.any { AssociationSemantics.getToOne(e, it) != null }
        } else {
            true
        }
    }