Hierarchy (view full)

Constructors

Properties

#target: Set<ModelStatic>

Accessors

Methods

  • Private

    Iterate over Models in an order suitable for e.g. creating tables. Will take foreign key constraints into account so that dependencies are visited before dependents.

    Parameters

    • iterator: ((model) => void)

      method to execute on each model

    • Optional options: {
          reverse?: boolean;
      }
      • Optional reverse?: boolean

    Returns void

    Deprecated

  • Returns an array that lists every model, sorted in order of foreign key references: The first model is a model that is depended upon, the last model is a model that is not depended upon.

    If there is a cyclic dependency, this returns null.

    Returns null | ModelStatic[]

Generated using TypeDoc