Skip to content
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

PHPORM-101 Allow empty insert batch for consistency with Eloquent SQL #2645

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Oct 18, 2023

Fix PHPORM-101
Fix #1704

Eloquent SQL allows empty inserts and shortcuts the call to the database. Do the same for consistency.

https://github.com/laravel/framework/blob/a47df681bf4b72cb11e38f7ee7c285406ca934e0/src/Illuminate/Database/Query/Builder.php#L3307-L3314

@GromNaN GromNaN requested a review from alcaeus October 18, 2023 21:04
@GromNaN GromNaN changed the base branch from 4.1 to 4.0 October 18, 2023 21:07
@mongodb mongodb deleted a comment from codecov-commenter Oct 18, 2023
@codecov-commenter

This comment was marked as spam.

@GromNaN GromNaN merged commit 25bd203 into mongodb:4.0 Oct 19, 2023
13 checks passed
@GromNaN GromNaN deleted the insert-empty branch October 19, 2023 07:14
@GromNaN GromNaN modified the milestones: 4.0.1, 4.0 Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$documents is empty
3 participants