Back to Exposed

getReferrers

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity-cache/get-referrers.html

1.2.0930 B
Original Source

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.v1.tests.shared.entities.EntityTests.preloadReferrersOnAnEntity

Generated by Dokka © 2026 Copyright