Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix has many save replace doesn't respect association conditions.
When removing associated records using the `SAVE_REPLACE` save strategy, the associations conditions need to be included for non-dependent/cascading configurations, otherwise the only condition used will be the primary key of the parent record, causing all linked records to be deleted, irrespectively of whether they are actually in the scope of the association.
- Loading branch information
Showing
2 changed files
with
114 additions
and
0 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