@mikro-orm/coreEnumerationsFlushModeVersion: 5.2On this pageconstFlushMode Index Enumeration membersALWAYSAUTOCOMMITEnumeration members ALWAYSALWAYS: = 2Flushes the EntityManager before every query.AUTOAUTO: = 1This is the default mode, and it flushes the EntityManager only if necessary.COMMITCOMMIT: = 0The EntityManager tries to delay the flush until the current Transaction is committed, although it might flush prematurely too.
Flushes the
EntityManager
before every query.