* Flushes all changes to objects that have been queued up to now to the database. * This effectively synchronizes the in-memory state of managed objects with the database.
()
| 2423 | * This effectively synchronizes the in-memory state of managed objects with the database. |
| 2424 | */ |
| 2425 | async flush(): Promise<void> { |
| 2426 | await this.getUnitOfWork().commit(); |
| 2427 | } |
| 2428 | |
| 2429 | /** |
| 2430 | * @internal |