Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exists() being called on every save() operation.
If an entity isNew and contains no primary key data we should not call exists() as there is no way for it to exist yet. Exists should continue to be called when the entity has a primary key value and is marked as new though as it may or may not exist in the database and we need to know. Fixes #4260
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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