Options
All
  • Public
  • Public/Protected
  • All
Menu

Wraps entities and creates getters/setters for their relations to be able to lazily load relations when accessing these relations.

Hierarchy

  • RelationLoader

Index

Constructors

constructor

Properties

Private connection

connection: Connection

Methods

enableLazyLoad

load

loadManyToManyNotOwner

loadManyToManyOwner

loadManyToOneOrOneToOneOwner

  • Loads data for many-to-one and one-to-one owner relations.

    (ow) post.category<=>category.post loaded: category from post example: SELECT category.id AS category_id, category.name AS category_name FROM category category INNER JOIN post Post ON Post.category=category.id WHERE Post.id=1

    Parameters

    Returns Promise<any>

loadOneToManyOrOneToOneNotOwner

Generated using TypeDoc