activemodel / kales.activemodel / HasManyAssociation

HasManyAssociation

interface HasManyAssociation<F : ApplicationRecord, T : ApplicationRecord> : MutableCollection<T>, Association

Represents a one-to-many association between models F and T respectively

Properties

collection

abstract val collection: MutableList<T>

fromKlass

abstract val fromKlass: KClass<F>

Companion Object Functions

empty

fun <F : ApplicationRecord, T : ApplicationRecord> empty(): HasManyAssociationImpl<F, T>

Inheritors

HasManyAssociationImpl

abstract class HasManyAssociationImpl<F : ApplicationRecord, T : ApplicationRecord> : HasManyAssociation<F, T>