Type alias PolyHasManyDefinitionWithTargetRelationName

PolyHasManyDefinitionWithTargetRelationName: {
    discriminator?: undefined;
    foreignKey?: undefined;
    model: string;
    polymorphic: string;
    type: HAS_MANY;
}

The polymorphic "hasMany" relation with a target relation name.

Type declaration

  • Optional discriminator?: undefined
  • Optional foreignKey?: undefined
  • model: string
  • polymorphic: string
  • type: HAS_MANY

Example

{
type: RelationType.HAS_MANY,
model: 'model',
polymorphic: 'reference',
}

Generated using TypeDoc