Type alias PolyHasManyDefinitionWithTargetKeys

PolyHasManyDefinitionWithTargetKeys: {
    discriminator: string;
    foreignKey: string;
    model: string;
    polymorphic: true;
    type: HAS_MANY;
}

The polymorphic "hasMany" relation with target relation keys.

Type declaration

  • discriminator: string
  • foreignKey: string
  • model: string
  • polymorphic: true
  • type: HAS_MANY

Example

{
type: RelationType.HAS_MANY,
model: 'model',
polymorphic: true,
foreignKey: 'referenceId',
discriminator: 'referenceType',
}

Generated using TypeDoc