Options
All
  • Public
  • Public/Protected
  • All
Menu

Loads relation ids for the given entities.

Hierarchy

  • RelationIdLoader

Index

Constructors

constructor

Properties

Private connection

connection: Connection

Methods

load

Protected loadForManyToMany

Protected loadForManyToOneAndOneToOneOwner

Protected loadForOneToManyAndOneToOneNotOwner

loadManyToManyRelationIdsAndGroup

  • loadManyToManyRelationIdsAndGroup<E1, E2>(relation: RelationMetadata, entitiesOrEntities: E1 | E1[], relatedEntityOrEntities?: E2 | E2[]): Promise<object[]>
  • Loads relation ids of the given entities and groups them into the object with parent and children.

    todo: extract this method?

    Type parameters

    • E1

    • E2

    Parameters

    • relation: RelationMetadata
    • entitiesOrEntities: E1 | E1[]
    • Optional relatedEntityOrEntities: E2 | E2[]

    Returns Promise<object[]>

Generated using TypeDoc