Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add loose emptiness handling for
HasMany
associations.
Adds support for treating `null`, `false`, and empty strings as empty sets of associated data, similar to how `BelongsToMany` handles such values. Also introduces bailing out early on empty sets for not yet persisted entities when using the `replace` save strategy. Solves #9474
- Loading branch information
ndm2
committed
Apr 4, 2017
1 parent
0a5c9eb
commit b6b46ff
Showing
2 changed files
with
271 additions
and
27 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