Skip to content

Commit

Permalink
Revert comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed May 28, 2024
1 parent a3332a7 commit 1c723bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ public function createOrFirst(array $attributes = [], array $values = []): Model
try {
$document = $collection->findOneAndUpdate(
$attributes,
// Before MongoDB 5.0, $setOnInsert requires a non-empty document,
// this should not be an issue as $values include the query filter.
// Before MongoDB 5.0, $setOnInsert requires a non-empty document.
// This should not be an issue as $values includes the query filter.
['$setOnInsert' => (object) $values],
[
'upsert' => true,
Expand Down

0 comments on commit 1c723bd

Please sign in to comment.