-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceMany: insert an empty array #1624
Conversation
@ajax13 thanks for the PR! We require though that each change has a corresponding test so there will be no regressions in the future. Also I'm afraid that simply putting empty arrays after years of not doing anything will be a BC break for people looking for not existing field through query builder... thoughts on this @alcaeus @jmikola? |
I think a BC-friendly approach would be having an option on the EmbedMany or ReferenceMany option that allows an empty array to be created if the collection is empty (instead of leaving the field omitted). If I had to guess, the current behavior of omitting empty collections is related to Otherwise, this seems like something you might simply change in 2.0 and document in the release notes. |
I agree on this and I also agree on using |
Putting into 2.0 bucket |
Hi, will be this funkcionality merged sometime pls? |
We can't merge the PR as-is, it requires more work. Somebody interested needs to pick it up |
I hope someone fixes it |
Superseded by #2547 |
Related to #1195