getRelated

abstract fun <T : Any> getRelated(clazz: KClass<T>, id: ModelID<*>): Set<Model<T>>

Finds all models of a specified type that has a relation to the specified model.


abstract fun <T : Any, U : Any> getRelated(property: KProperty1<T, ModelID<U>?>, id: ModelID<*>): Set<Model<T>>