getReferrers

fun <R : Entity<*>> getReferrers(sourceId: EntityID<*>, key: Column<*>): SizedIterable<R>?

Returns a SizedIterable containing all child Entity instances that reference the parent entity with the provided sourceId using the specified key column.

Samples

org.jetbrains.exposed.sql.tests.shared.entities.EntityTests.preloadReferrersOnAnEntity