Skip to main content
Version: Next

PolymorphicRef

Wrapper class for polymorphic relation reference data. Holds the discriminator value (type identifier) and the primary key value(s). Used internally to track polymorphic FK values before hydration.

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

publicreadonlydiscriminator

discriminator: string

publicid

id: unknown

Methods

toTuple

  • toTuple(): unknown[]
  • Returns [discriminator, ...idValues] tuple suitable for column-level expansion.


    Returns unknown[]

Page Options