hasManyRelationship

Delegate for has-many relationships. Let you specify the name of the relationship to delegate to.

Parameters

name

The name of the relationship.

R

The type of the resource.

RL

The type of the relationship.


fun <R : Resource, RL : Resource> R.hasManyRelationship(name: String, defaultValue: List<RL>? = emptyList()): MapDelegate<R, List<RL>?>(source)

Delegate for has-many relationships. Let you specify the name of the relationship to delegate to.

Parameters

name

The name of the relationship.

defaultValue

The default value of the relationship.

R

The type of the resource.

RL

The type of the relationship.