Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
b0bb3a5
Merge 4.8 into 5.0 (#3061)
mongodb-php-bot Jul 22, 2024
d370221
Merge 4.8 into 5.0 (#3066)
mongodb-php-bot Jul 23, 2024
3c0b011
Merge 4.8 into 5.0 (#3069)
mongodb-php-bot Jul 23, 2024
cec10c0
Merge 4.8 into 5.0 (#3070)
mongodb-php-bot Jul 24, 2024
63b3a68
Merge 4.8 into 5.0 (#3077)
mongodb-php-bot Jul 25, 2024
8f27fad
Merge 4.8 into 5.0 (#3079)
mongodb-php-bot Jul 25, 2024
09cf4b3
Merge 4.8 into 5.0 (#3083)
mongodb-php-bot Jul 29, 2024
076769b
Merge 4.8 into 5.0 (#3086)
mongodb-php-bot Jul 31, 2024
75de044
Merge 4.8 into 5.0 (#3092)
mongodb-php-bot Aug 1, 2024
78571d8
Merge 4.8 into 5.0 (#3098)
mongodb-php-bot Aug 12, 2024
1c7774c
Merge 4.8 into 5.0 (#3099)
mongodb-php-bot Aug 12, 2024
73c18e9
Merge 4.8 into 5.0 (#3102)
mongodb-php-bot Aug 16, 2024
a453f8a
PHPORM-147 Make `id` an alias for `_id` (#3040)
GromNaN Aug 20, 2024
d2c6de9
Merge 4.8 into 5.0 (#3112)
mongodb-php-bot Aug 23, 2024
bd9ef30
PHPORM-230 Convert DateTimeInterface to UTCDateTime in queries (#3105)
GromNaN Aug 26, 2024
fbed3dc
Merge 4.8 into 5.0 (#3115)
mongodb-php-bot Aug 26, 2024
f3bb644
Merge 4.8 into 5.0 (#3116)
mongodb-php-bot Aug 26, 2024
9c1146c
PHPORM-216 Remove $collection setting from DocumentModel and Connecti…
GromNaN Aug 26, 2024
457971b
Merge 4.8 into 5.0 (#3118)
mongodb-php-bot Aug 26, 2024
aaf3982
Merge branch '5.0' into merge-4.8-into-5.0-1724777129234
GromNaN Aug 27, 2024
f1ffd1b
Merge 4.8 into 5.0 (#3120)
mongodb-php-bot Aug 27, 2024
ebda1fa
PHPORM-229 Make Query\Builder return objects instead of array to matc…
GromNaN Aug 27, 2024
cd9ebf6
Merge 4.8 into 5.0 (#3128)
mongodb-php-bot Aug 29, 2024
7296a25
Merge 4.8 into 5.0 (#3129)
mongodb-php-bot Aug 30, 2024
d7da552
Update PR template (#3121)
GromNaN Sep 2, 2024
a0b6134
PHPORM-231 Remove MongoFailedJobProvider (#3122)
GromNaN Sep 2, 2024
af4e73d
Remove MongoDBQueueServiceProvider in composer.json (#3131)
masterbater Sep 3, 2024
5b7ca02
Remove support for Laravel 10 (#3123)
GromNaN Sep 3, 2024
c710097
PHPORM-234 Convert dates in DB Query results (#3119)
GromNaN Sep 3, 2024
5f0682f
PHPORM-157 Remove Blueprint::background() (#3132)
GromNaN Sep 4, 2024
7551f76
PHPORM-235 Remove custom DatabaseTokenRepository (#3124)
GromNaN Sep 4, 2024
807f5fa
DOCSP-43158: carbon date values db query results (#3133)
rustagir Sep 5, 2024
837078f
PHPORM-236 Remove _id from query results (#3136)
GromNaN Sep 5, 2024
e424861
DOCSP-41335: Id field alias (#3042)
norareidy Sep 5, 2024
74f219c
PHPORM-56 Replace Collection proxy class with Driver monitoring (#3137)
GromNaN Sep 6, 2024
2ee0dd9
Modernize code with rector (#3139)
GromNaN Sep 6, 2024
6507279
DOCSP-43172: Remove DatabaseTokenRepository class (#3130)
norareidy Sep 6, 2024
4766274
DOCSP-43159: QB returns objects (#3135)
rustagir Sep 9, 2024
f65b9e0
DOCSP-42956: Remove $collection support (#3138)
norareidy Sep 10, 2024
aebf049
DOCSP-42957: DateTimeInterface in queries (#3140)
norareidy Sep 10, 2024
25a6e9e
Add options to countDocuments method (#3142)
jeyechoi Sep 11, 2024
de037dd
Update merge-up config for new branch pattern (#3143)
GromNaN Sep 12, 2024
3c1aab7
Update changelog (#3144)
GromNaN Sep 12, 2024
11fe1ef
Update changelog (#3144) (#3147)
mongodb-php-bot Sep 12, 2024
3ac7955
Re-enable support for Laravel 10 (#3148)
GromNaN Sep 13, 2024
8eebe7a
Merge branch '5.x' into merge-5.0-into-5.x-1726210087353
GromNaN Sep 13, 2024
ce97048
Merge 5.0 into 5.x (#3150)
mongodb-php-bot Sep 13, 2024
cf9c9b1
DOCSP-43539: v5 release (#3154)
rustagir Sep 13, 2024
98474c3
DOCSP-43530: Id field in query results (#3149)
norareidy Sep 13, 2024
dd69219
Merge 5.0 into 5.x (#3155)
mongodb-php-bot Sep 13, 2024
06c4a3e
Merge 5.0 into 5.x (#3156)
mongodb-php-bot Sep 13, 2024
a516427
PHPORM-241 Add return type to CommandSubscriber (#3157)
GromNaN Sep 16, 2024
f7e5758
PHPORM-205: Automate branch creation when releasing (#3145)
alcaeus Sep 16, 2024
b51aeff
PHPORM-241 Add return type to CommandSubscriber (#3158)
GromNaN Sep 17, 2024
cf13eae
Merge branch '5.x' into merge-5.0-into-5.x-1726571121965
GromNaN Sep 17, 2024
d6ac34a
Merge 5.0 into 5.x (#3159)
mongodb-php-bot Sep 17, 2024
38dc1e3
PHPORM-239 Convert `_id` and `UTCDateTime` in results of `Model::raw(…
GromNaN Sep 17, 2024
716d8e1
PHPORM-243 Alias `_id` to `id` in `Schema::getColumns()` (#3160)
GromNaN Sep 20, 2024
7a865e7
Owner key for morphTo relations (#3162)
hans-thomas Sep 30, 2024
8318822
Remove changelog, use release notes instead (#3164)
GromNaN Oct 1, 2024
5c7e240
DOCSP-43806: getColumns id alias (#3165)
rustagir Oct 1, 2024
a5ef5c0
PHPORM-248 register command subscriber only when logs are enabled (#3…
GromNaN Oct 4, 2024
a964156
Fix `Query\Builder::pluck()` with `ObjectId` as key (#3169)
fuyuki0511 Oct 4, 2024
3955807
PHPORM-207 Convert arrow notation -> to dot . (#3170)
GromNaN Oct 7, 2024
05f5b74
DOCSP-43615: raw() field conversions (#3172)
norareidy Oct 11, 2024
99af035
DOCSP-44172: Laravel Herd (#3171)
norareidy Oct 11, 2024
9108d27
Docs changes v5.1 (#3174)
norareidy Oct 11, 2024
6c9b443
Merge 5.1 into 5.x (#3175)
mongodb-php-bot Oct 11, 2024
f6536fe
DOCSP-44158: Convert arrow to dot notation (#3173)
norareidy Oct 11, 2024
3841535
Merge 5.1 into 5.x (#3176)
mongodb-php-bot Oct 11, 2024
7870748
DOCSP-44177: 5.1 compatibility (#3177)
norareidy Oct 11, 2024
dd5283a
Merge 5.1 into 5.x (#3178)
mongodb-php-bot Oct 11, 2024
7d6073d
Typo in upgrade doc (#3180)
GromNaN Oct 15, 2024
bd4b9ee
Merge 5.1 into 5.x (#3181)
mongodb-php-bot Oct 16, 2024
25f7e8c
Merge branch '5.0' into merge-4.8-into-5.0-1729798205060
rustagir Oct 24, 2024
095076b
Merge 4.8 into 5.0 (#3186)
mongodb-php-bot Oct 24, 2024
8afd666
Merge 5.0 into 5.1 (#3187)
mongodb-php-bot Oct 24, 2024
9973195
Merge 5.1 into 5.x (#3188)
mongodb-php-bot Oct 24, 2024
9577c37
Merge 4.8 into 5.0 (#3194)
mongodb-php-bot Nov 6, 2024
c0d2635
Merge 5.0 into 5.1 (#3195)
mongodb-php-bot Nov 6, 2024
4fcf67b
Merge 5.1 into 5.x (#3196)
mongodb-php-bot Nov 6, 2024
8cf9f66
PHPORM-259 Register MongoDB Session Handler with `SESSION_DRIVER=mong…
GromNaN Nov 6, 2024
c23cadd
DOCSP-42964: Remove nested component (#3198)
norareidy Nov 7, 2024
44f1f90
Merge 5.1 into 5.x (#3199)
mongodb-php-bot Nov 7, 2024
4f59e34
DOCSP-44949 Relabel TOC
lindseymoore Nov 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ This will help reviewers and should be a good start for the documentation.
### Checklist

- [ ] Add tests and ensure they pass
- [ ] Add an entry to the CHANGELOG.md file
- [ ] Update documentation for new features
3 changes: 2 additions & 1 deletion .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Merge up
on:
push:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9x]+"

env:
GH_TOKEN: ${{ secrets.MERGE_UP_TOKEN }}
Expand All @@ -28,4 +28,5 @@ jobs:
with:
ref: ${{ github.ref_name }}
branchNamePattern: '<major>.<minor>'
devBranchNamePattern: '<major>.x'
enableAutoMerge: true
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
run: |
echo RELEASE_VERSION=${{ inputs.version }} >> $GITHUB_ENV
echo RELEASE_BRANCH=$(echo ${{ inputs.version }} | cut -d '.' -f-2) >> $GITHUB_ENV
echo DEV_BRANCH=$(echo ${{ inputs.version }} | cut -d '.' - f-1).x >> $GITHUB_ENV

- name: "Ensure release tag does not already exist"
run: |
Expand All @@ -40,12 +41,31 @@ jobs:
exit 1
fi

- name: "Fail if branch names don't match"
if: ${{ github.ref_name != env.RELEASE_BRANCH }}
# For patch releases (A.B.C where C != 0), we expect the release to be
# triggered from the A.B maintenance branch
- name: "Fail if patch release is created from wrong release branch"
if: ${{ !endsWith(inputs.version, '.0') && env.RELEASE_BRANCH != github.ref_name }}
run: |
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }}, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
exit 1

# For non-patch releases (A.B.C where C == 0), we expect the release to
# be triggered from the A.x maintenance branch or A.x development branch
- name: "Fail if non-patch release is created from wrong release branch"
if: ${{ endsWith(inputs.version, '.0') && env.RELEASE_BRANCH != github.ref_name && env.DEV_BRANCH != github.ref_name }}
run: |
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }} or ${{ env.DEV_BRANCH }}, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
exit 1

# If a non-patch release is created from its A.x development branch,
# create the A.B maintenance branch from the current one and push it
- name: "Create and push new release branch for non-patch release"
if: ${{ endsWith(inputs.version, '.0') && env.DEV_BRANCH == github.ref_name }}
run: |
echo '🆕 Creating new release branch ${RELEASE_BRANCH} from ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
git checkout -b ${RELEASE_BRANCH}
git push origin ${RELEASE_BRANCH}

#
# Preliminary checks done - commence the release process
#
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
php:
- '8.1'
- '8.2'
- '8.3'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
201 changes: 0 additions & 201 deletions CHANGELOG.md

This file was deleted.

3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ If the project maintainer has any additional requirements, you will find them li

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the documentation is kept up-to-date, and update the changelog for
new features and bug fixes.
- **Document any change in behaviour** - Make sure the documentation is kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](https://semver.org/). Randomly breaking public APIs is not an option.

Expand Down
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"illuminate/database": "^10.30|^11",
"illuminate/events": "^10.0|^11",
"illuminate/support": "^10.0|^11",
"mongodb/mongodb": "^1.15"
"mongodb/mongodb": "^1.18",
"symfony/http-foundation": "^6.4|^7"
},
"require-dev": {
"mongodb/builder": "^0.2",
Expand All @@ -41,7 +42,8 @@
"mockery/mockery": "^1.4.4",
"doctrine/coding-standard": "12.0.x-dev",
"spatie/laravel-query-builder": "^5.6",
"phpstan/phpstan": "^1.10"
"phpstan/phpstan": "^1.10",
"rector/rector": "^1.2"
},
"conflict": {
"illuminate/bus": "< 10.37.2"
Expand All @@ -68,7 +70,6 @@
"laravel": {
"providers": [
"MongoDB\\Laravel\\MongoDBServiceProvider",
"MongoDB\\Laravel\\MongoDBQueueServiceProvider",
"MongoDB\\Laravel\\MongoDBBusServiceProvider"
]
}
Expand All @@ -77,7 +78,8 @@
"test": "phpunit",
"test:coverage": "phpunit --coverage-clover ./coverage.xml",
"cs": "phpcs",
"cs:fix": "phpcbf"
"cs:fix": "phpcbf",
"rector": "rector"
},
"config": {
"allow-plugins": {
Expand Down
2 changes: 1 addition & 1 deletion docs/compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Compatibility
:class: singlecol

.. meta::
:keywords: laravel 9, laravel 10, laravel 11, 4.0, 4.1, 4.2
:keywords: laravel 9, laravel 10, laravel 11, 4.0, 4.1, 4.2, 5.0, 5.1

Laravel Compatibility
---------------------
Expand Down
12 changes: 6 additions & 6 deletions docs/eloquent-models.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Eloquent Models
.. meta::
:keywords: php framework, odm

.. toctree::

Eloquent Model Class </eloquent-models/model-class/>
Relationships </eloquent-models/relationships>
Schema Builder </eloquent-models/schema-builder>

Eloquent models are part of the Laravel Eloquent object-relational
mapping (ORM) framework, which lets you to work with data in a relational
database by using model classes and Eloquent syntax. The {+odm-short+} extends
Expand All @@ -26,9 +32,3 @@ the {+odm-short+} to work with MongoDB in the following ways:
between models
- :ref:`laravel-schema-builder` shows how to manage indexes on your MongoDB
collections by using Laravel migrations

.. toctree::

/eloquent-models/model-class/
Relationships </eloquent-models/relationships>
Schema Builder </eloquent-models/schema-builder>
19 changes: 11 additions & 8 deletions docs/eloquent-models/model-class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ model attribute, stored in MongoDB as a :php:`MongoDB\\BSON\\UTCDateTime
To learn more, see `Attribute Casting <https://laravel.com/docs/{+laravel-docs-version+}/eloquent-mutators#attribute-casting>`__
in the Laravel documentation.

This conversion lets you use the PHP :php:`DateTime <class.datetime>`
or the `Carbon class <https://carbon.nesbot.com/docs/>`__ to work with dates
This conversion lets you use the PHP :php:`DateTime
<class.datetime>` class to work with dates
in this field. The following example shows a Laravel query that uses the
casting helper on the model to query for planets with a ``discovery_dt`` of
less than three years ago:
Expand All @@ -226,6 +226,13 @@ less than three years ago:

Planet::where( 'discovery_dt', '>', new DateTime('-3 years'))->get();

.. note:: Carbon Date Class

Starting in {+odm-long+} v5.0, ``UTCDateTime`` BSON values in MongoDB
are returned as `Carbon <https://carbon.nesbot.com/docs/>`__ date
classes in query results. The {+odm-short+} applies the default
timezone when performing this conversion.

To learn more about MongoDB's data types, see :manual:`BSON Types </reference/bson-types/>`
in the Server manual.

Expand Down Expand Up @@ -295,12 +302,8 @@ including this trait, you can make the third-party class compatible with
MongoDB.

When you apply the ``DocumentModel`` trait to a model class, you must
declare the following properties in your class:

- ``$primaryKey = '_id'``, because the ``_id`` field uniquely
identifies MongoDB documents
- ``$keyType = 'string'``, because the {+odm-short+} casts MongoDB
``ObjectId`` values to type ``string``
set the ``$keyType`` property to ``'string'`` as the {+odm-short+}
casts MongoDB ``ObjectId`` values to type ``string``.

Extended Class Example
~~~~~~~~~~~~~~~~~~~~~~
Expand Down
10 changes: 5 additions & 5 deletions docs/fundamentals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Fundamentals
:titlesonly:
:maxdepth: 1

/fundamentals/connection
/fundamentals/database-collection
/fundamentals/read-operations
/fundamentals/write-operations
/fundamentals/aggregation-builder
Connections </fundamentals/connection>
Databases & Collections </fundamentals/database-collection>
Read Operations </fundamentals/read-operations>
Write Operations </fundamentals/write-operations>
Aggregation Builder </fundamentals/aggregation-builder>

Learn more about the following concepts related to {+odm-long+}:

Expand Down
6 changes: 3 additions & 3 deletions docs/fundamentals/connection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Connections

.. toctree::

/fundamentals/connection/connect-to-mongodb
/fundamentals/connection/connection-options
/fundamentals/connection/tls
Connection Guide </fundamentals/connection/connect-to-mongodb>
Connection Options </fundamentals/connection/connection-options>
Configure TLS </fundamentals/connection/tls>

.. contents:: On this page
:local:
Expand Down
6 changes: 2 additions & 4 deletions docs/fundamentals/connection/connect-to-mongodb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@ For a MongoDB database connection, you can specify the following details:

'host' => ['node1.example.com:27017', 'node2.example.com:27017', 'node3.example.com:27017'],

.. note::

This option does not accept hosts that use the DNS seedlist
connection format.
| This option does not accept hosts that use the DNS seedlist
connection format.

* - ``database``
- Specifies the name of the MongoDB database to read and write to.
Expand Down
21 changes: 13 additions & 8 deletions docs/fundamentals/database-collection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,21 @@ schema builder method in your application.
You can also use the following methods to return more information about the
collection fields:

- ``Schema::hasColumn(string $<collection>, string $<field name>)``: checks if the specified field exists
in at least one document
- ``Schema::hasColumns(string $<collection>, string[] $<field names>)``: checks if each specified field exists
in at least one document
- ``Schema::hasColumn(string $<collection>, string $<field name>)``:
checks if the specified field exists in at least one document
- ``Schema::hasColumns(string $<collection>, string[] $<field names>)``:
checks if each specified field exists in at least one document

.. note::
MongoDB is a schemaless database, so the preceding methods query the collection
data rather than the database schema. If the specified collection doesn't exist
or is empty, these methods return a value of ``false``.

.. note:: id Alias

MongoDB is a schemaless database, so the preceding methods query the collection
data rather than the database schema. If the specified collection doesn't exist
or is empty, these methods return a value of ``false``.
Starting in {+odm-long+} v5.1, the ``getColumns()`` method represents
the ``_id`` field name in a MongoDB collection as the alias ``id`` in
the returned list of field names. You can pass either ``_id`` or
``id`` to the ``hasColumn()`` and ``hasColumns()`` methods.

Example
```````
Expand Down
1 change: 0 additions & 1 deletion docs/includes/auth/PersonalAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class PersonalAccessToken extends SanctumToken

protected $connection = 'mongodb';
protected $table = 'personal_access_tokens';
protected $primaryKey = '_id';
protected $keyType = 'string';
}
1 change: 0 additions & 1 deletion docs/includes/eloquent-models/PlanetThirdParty.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ class Planet extends CelestialBody
use DocumentModel;

protected $fillable = ['name', 'diameter'];
protected $primaryKey = '_id';
protected $keyType = 'string';
}
2 changes: 1 addition & 1 deletion docs/includes/framework-compatibility-laravel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Laravel 10.x
- Laravel 9.x

* - 4.2 to 4.8
* - 4.2 to 5.1
- ✓
- ✓
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function testModelUpdateFluent(): void

// begin model update one fluent
$concert = Concert::where(['performer' => 'Brad Mehldau'])
->orderBy('_id')
->orderBy('id')
->first()
->update(['venue' => 'Manchester Arena', 'ticketsSold' => 9543]);
// end model update one fluent
Expand Down Expand Up @@ -370,31 +370,31 @@ public function testModelDeleteById(): void

$data = [
[
'_id' => 'CH-0401242000',
'id' => 'CH-0401242000',
'performer' => 'Mitsuko Uchida',
'venue' => 'Carnegie Hall',
'genres' => ['classical'],
'ticketsSold' => 2121,
'performanceDate' => new UTCDateTime(Carbon::create(2024, 4, 1, 20, 0, 0, 'EST')),
],
[
'_id' => 'MSG-0212252000',
'id' => 'MSG-0212252000',
'performer' => 'Brad Mehldau',
'venue' => 'Philharmonie de Paris',
'genres' => [ 'jazz', 'post-bop' ],
'ticketsSold' => 5745,
'performanceDate' => new UTCDateTime(Carbon::create(2025, 2, 12, 20, 0, 0, 'CET')),
],
[
'_id' => 'MSG-021222000',
'id' => 'MSG-021222000',
'performer' => 'Billy Joel',
'venue' => 'Madison Square Garden',
'genres' => [ 'rock', 'soft rock', 'pop rock' ],
'ticketsSold' => 12852,
'performanceDate' => new UTCDateTime(Carbon::create(2025, 2, 12, 20, 0, 0, 'CET')),
],
[
'_id' => 'SF-06302000',
'id' => 'SF-06302000',
'performer' => 'The Rolling Stones',
'venue' => 'Soldier Field',
'genres' => [ 'rock', 'pop', 'blues' ],
Expand Down Expand Up @@ -478,22 +478,22 @@ public function testModelDeleteMultipleById(): void
Concert::truncate();
$data = [
[
'_id' => 3,
'id' => 3,
'performer' => 'Mitsuko Uchida',
'venue' => 'Carnegie Hall',
],
[
'_id' => 5,
'id' => 5,
'performer' => 'Brad Mehldau',
'venue' => 'Philharmonie de Paris',
],
[
'_id' => 7,
'id' => 7,
'performer' => 'Billy Joel',
'venue' => 'Madison Square Garden',
],
[
'_id' => 9,
'id' => 9,
'performer' => 'The Rolling Stones',
'venue' => 'Soldier Field',
],
Expand Down
Loading