Skip to content

setPersistenceDialect

setPersistenceDialect(dialect): void

Defined in: packages/ddd-core/persistence/persistence-dialect.ts:30

Registers the dialect that @MapPersistenceErrors and @PersistedWrite use when their options name none. Call it once at the composition root, after the ORM is initialized; undefined removes it.

IPersistenceDialect | undefined

void

setPersistenceDialect(new MikroOrmDialect(orm));