-
-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): disable auto flushing by default [BC] (#79)
Having auto flushing enabled by default was a poor choice, as it could produce multiple small transactions without user knowing it. EM.persist() now won't flush anything (by default), so ORM will behave the same way as others like hibernate or doctrine. BREAKING CHANGES: With default `autoFlush` value, em.persist(), em.removeEntity() and em.remove(e: IEntity) will not flush the EM. Either use second flush parameter or flush method variants (like em.removeAndFlush()). Closes #63
- Loading branch information
Showing
11 changed files
with
223 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.