Skip to content

Commit aee3510

Browse files
committed
Merge branch '4.1' into 4.2
2 parents 9b72148 + b1ab9dc commit aee3510

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ All notable changes to this project will be documented in this file.
44
## [unreleased]
55

66
* Add support for Laravel 11 by @GromNaN in [#2735](https://github.com/mongodb/laravel-mongodb/pull/2735)
7-
* Fix `Query\Builder::dump` and `dd` methods to dump the MongoDB query by @GromNaN in [#2727](https://github.com/mongodb/laravel-mongodb/pull/2727) and [#2730](https://github.com/mongodb/laravel-mongodb/pull/2730)
87

9-
## [4.1.2]
8+
## [4.1.2] - 2024-02-22
109

1110
* Fix support for subqueries using the query builder by @GromNaN in [#2717](https://github.com/mongodb/laravel-mongodb/pull/2717)
11+
* Fix `Query\Builder::dump` and `dd` methods to dump the MongoDB query by @GromNaN in [#2727](https://github.com/mongodb/laravel-mongodb/pull/2727) and [#2730](https://github.com/mongodb/laravel-mongodb/pull/2730)
1212

1313
## [4.1.1] - 2024-01-17
1414

docs/eloquent-models.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Keep in mind guarding still works, but you may experience unexpected behavior.
168168
Schema
169169
------
170170

171-
The database driver also has (limited) schema builder support. You can
171+
The database driver also has (limited) schema builder support. You can
172172
conveniently manipulate collections and set indexes.
173173

174174
Basic Usage
@@ -351,7 +351,7 @@ relation definition.
351351

352352
.. code-block:: php
353353

354-
$book = Book::first();
354+
$book = User::first()->books()->first();
355355

356356
$user = $book->user;
357357

@@ -455,7 +455,7 @@ Inserting and updating embedded models works similar to the ``hasOne`` relation:
455455
$book->author()
456456
->create(['name' => 'John Doe']);
457457

458-
You can update the embedded model using the ``save`` method (available since
458+
You can update the embedded model using the ``save`` method (available since
459459
release 2.0.0):
460460

461461
.. code-block:: php
@@ -476,13 +476,13 @@ You can replace the embedded model with a new model like this:
476476
Cross-Database Relationships
477477
----------------------------
478478

479-
If you're using a hybrid MongoDB and SQL setup, you can define relationships
479+
If you're using a hybrid MongoDB and SQL setup, you can define relationships
480480
across them.
481481

482-
The model will automatically return a MongoDB-related or SQL-related relation
482+
The model will automatically return a MongoDB-related or SQL-related relation
483483
based on the type of the related model.
484484

485-
If you want this functionality to work both ways, your SQL-models will need
485+
If you want this functionality to work both ways, your SQL-models will need
486486
to use the ``MongoDB\Laravel\Eloquent\HybridRelations`` trait.
487487

488488
**This functionality only works for ``hasOne``, ``hasMany`` and ``belongsTo``.**

0 commit comments

Comments
 (0)