← Back to Stormify Documentation

details

inline fun <D : Any> Any.details(propertyName: String? = null): List<D>

Returns all detail (child) entities of type D related to this parent through a foreign key.


inline fun <D : Any> Any.details(referenceField: ReferencePath): List<D>

Type-safe variant of details that accepts an annotation-processor-generated reference path (e.g. Paths.AuditEntry_.createdBy) instead of a string.