Skip to content

Commit 62f6449

Browse files
authoredAug 27, 2024
Merge branch '4.8' into merge-4.7-into-4.8-1724687399102
2 parents efab63b + 500ae9b commit 62f6449

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+807
-486
lines changed
 

Diff for: ‎CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## [4.7.2] - coming soon
4+
## [4.8.0] - 2024-08-27
5+
6+
* Add `Query\Builder::incrementEach()` and `decrementEach()` methods by @SmallRuralDog in [#2550](https://github.com/mongodb/laravel-mongodb/pull/2550)
7+
* Add `Query\Builder::whereLike()` and `whereNotLike()` methods by @GromNaN in [#3108](https://github.com/mongodb/laravel-mongodb/pull/3108)
8+
* Deprecate `Connection::collection()` and `Schema\Builder::collection()` methods by @GromNaN in [#3062](https://github.com/mongodb/laravel-mongodb/pull/3062)
9+
* Deprecate `Model::$collection` property to customize collection name. Use `$table` instead by @GromNaN in [#3064](https://github.com/mongodb/laravel-mongodb/pull/3064)
10+
11+
## [4.7.2] - 2024-08-27
512

613
* Add `Query\Builder::upsert()` method with a single document by @GromNaN in [#3100](https://github.com/mongodb/laravel-mongodb/pull/3100)
714

Diff for: ‎docs/eloquent-models/model-class.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Change the Model Collection Name
111111

112112
By default, the model uses the snake case plural form of your model
113113
class name. To change the name of the collection the model uses to retrieve
114-
and save data in MongoDB, override the ``$collection`` property of the model
114+
and save data in MongoDB, override the ``$table`` property of the model
115115
class.
116116

117117
.. note::
@@ -127,7 +127,7 @@ The following example specifies the custom MongoDB collection name,
127127
:emphasize-lines: 9
128128
:dedent:
129129

130-
Without overriding the ``$collection`` property, this model maps to the
130+
Without overriding the ``$table`` property, this model maps to the
131131
``planets`` collection. With the overridden property, the example class stores
132132
the model in the ``celestial_body`` collection.
133133

0 commit comments

Comments
 (0)