Skip to main content
Version: 5.9

EntityGenerator

Index

Constructors

Methods

Constructors

constructor

  • new EntityGenerator(em: SqlEntityManager<AbstractSqlDriver<AbstractSqlConnection, AbstractSqlPlatform>>): EntityGenerator
  • Parameters

    • em: SqlEntityManager<AbstractSqlDriver<AbstractSqlConnection, AbstractSqlPlatform>>

    Returns EntityGenerator

Methods

generate

  • generate(options?: GenerateOptions): Promise<string[]>
  • Parameters

    • options: GenerateOptions = {}

    Returns Promise<string[]>

staticregister

  • register(orm: MikroORM<IDatabaseDriver<Connection>>): void
  • Parameters

    • orm: MikroORM<IDatabaseDriver<Connection>>

    Returns void

Page Options