activemodel / kales.activemodel / BelongsToAssociation

BelongsToAssociation

interface BelongsToAssociation<T : ApplicationRecord> : Association

Represents an association where a model A's table contains a foreign key to another model B's ApplicationRecord object, in a "A belongs to B" fashion.

Properties

value

abstract var value: T?

Companion Object Functions

empty

fun <T : ApplicationRecord> empty(): BelongsToAssociationImpl<T>

Inheritors

BelongsToAssociationImpl

abstract class BelongsToAssociationImpl<T : ApplicationRecord> : BelongsToAssociation<T>