-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCSP-632 - Document replSetAbortPrimaryCatchUp command and update in… #3136
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…fo on catchUpTimeoutMillis.
mongodb-server-docs-sync-bot bot
pushed a commit
that referenced
this pull request
Jul 23, 2025
* PHPORM-229 Make Query\Builder return objects instead of array to match Laravel's behavior (#3107) * version bump * DOCSP-42794: Laravel Passport (#3113) Adds a section to the User Authentication page that describes Laravel Passport. * Update PR template (#3121) * PHPORM-231 Remove MongoFailedJobProvider (#3122) * Remove MongoDBQueueServiceProvider in composer.json (#3131) Class "MongoDB\Laravel\MongoDBQueueServiceProvider" not found due to being removed in this commit mongodb/laravel-mongodb@a0b6134 * Remove support for Laravel 10 (#3123) * PHPORM-234 Convert dates in DB Query results (#3119) Use the current timezone when reading an UTCDateTime * PHPORM-157 Remove Blueprint::background() (#3132) * PHPORM-235 Remove custom DatabaseTokenRepository (#3124) * DOCSP-43158: carbon date values db query results (#3133) * DOCSP-43158: carbon date values db query results * add to upgrade guide * wip * PHPORM-236 Remove _id from query results (#3136) * DOCSP-41335: Id field alias (#3042) Adds information and an example of the ID field alias. --------- Co-authored-by: norareidy <norareidy@users.noreply.github.com> Co-authored-by: rustagir <rea.rustagi@mongodb.com> * PHPORM-56 Replace Collection proxy class with Driver monitoring (#3137) * Modernize code with rector (#3139) * DOCSP-43172: Remove DatabaseTokenRepository class (#3130) * DOCSP-43172: Remove DatabaseTokenRepository class * JT feedback * edit * JT feedback 2 * DOCSP-43159: QB returns objects (#3135) * DOCSP-43159: QB returns objects * add to upgrade guide * add depth layer * JT tech review 2 * wip * DOCSP-42956: Remove $collection support (#3138) Adds a note about removed $collection and collection() support to the upgrade guide. * DOCSP-42957: DateTimeInterface in queries (#3140) Adds information & a code example about automatic conversion from DateTimeInterface to UTCDateTime in queries. * Add options to countDocuments method (#3142) * Update merge-up config for new branch pattern (#3143) * Update changelog (#3144) * Update changelog (#3144) (#3147) Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Re-enable support for Laravel 10 (#3148) * DOCSP-43539: v5 release (#3154) * DOCSP-43539: v5 release * toc reshuffle * DOCSP-43530: Id field in query results (#3149) Adds information about ID field representation in query builder results * PHPORM-241 Add return type to CommandSubscriber (#3157) * PHPORM-205: Automate branch creation when releasing (#3145) * Automate branch creation when releasing * Apply feedback from code review * PHPORM-241 Add return type to CommandSubscriber (#3158) * PHPORM-239 Convert `_id` and `UTCDateTime` in results of `Model::raw()` before hydratation (#3152) * PHPORM-243 Alias `_id` to `id` in `Schema::getColumns()` (#3160) * PHPORM-243 Alias _id to id in Schema::getColumns * Support hasColumn for nested id * Owner key for morphTo relations (#3162) * Remove changelog, use release notes instead (#3164) * DOCSP-43806: getColumns id alias (#3165) * DOCSP-43806: getColumns id alias * JT tech review 1 * PHPORM-248 register command subscriber only when logs are enabled (#3167) * Fix `Query\Builder::pluck()` with `ObjectId` as key (#3169) Conversion of ObjectId to string is done in Laravel https://github.com/laravel/framework/blob/646520ad682d98b5211c6e26092259cfbe130b5c/src/Illuminate/Collections/Arr.php#L562 --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * PHPORM-207 Convert arrow notation -> to dot . (#3170) * DOCSP-43615: raw() field conversions (#3172) * DOCSP-43615: raw() ID conversion * utcdatetime * wording * DOCSP-44172: Laravel Herd (#3171) Adds information about Laravel Herd to the quick start * Docs changes v5.1 (#3174) Adds raw() field conversions and Laravel Herd information * DOCSP-44158: Convert arrow to dot notation (#3173) Adds information about dot and arrow notation conversion in v5.1 * DOCSP-44177: 5.1 compatibility (#3177) Compatibility table updates for v5.1 * Typo in upgrade doc (#3180) * DOCSP-44610: fix php links (#3185) * DOCSP-44610: fix php links * use php directive * Don't add invalid regions to SARIF report (#3193) * PHPORM-259 Register MongoDB Session Handler with `SESSION_DRIVER=mongodb` (#3192) * PHPORM-259 Register MongoDB Session Handler with SESSION_DRIVER=mongodb * Explicit dependency to symfony/http-foundation * DOCSP-42964: Remove nested component (#3198) * Disable mongoc_client reuse between connections (#3197) * Increase connection timeouts to allow using Atlas shared clusters (#3206) * PHPORM-263 Fix deprecation message for collection/table config in MongoDBQueueServiceProvider (#3209) * DOCSP-45411: qb options (#3208) * DOCSP-45411: qb options * link * NR PR fixes 1 * DOCSP-44949 TOC Relabel (#3204) * DOCSP-44949 TOC Relabel * indent * DOCSP-42020: queues feedback (#3221) * DOCSP-42020: queues feedback * JS small fix * DOCSP-42020: queues feedback 5.0 (#3222) * DOCSP-42020: queues feedback (cherry picked from commit 830ba9f2ab00f637c30e1f2526ea4b18ddc4ab0c) * DOCSP-42020: queues feedback - 5.0+ * JS small fix * replace cxn with db in tables * PHPORM-274 List search indexes in `Schema::getIndexes()` introspection method (#3233) * PHPORM-273 Add schema helpers to create search and vector indexes (#3230) * Fix tests on Schema index helpers (#3236) Add helpers for index exists/not-exists * PHPORM-266 Run tests on Atlas Local (#3216) * PHPORM-283 Add `Schema::dropSearchIndex()` (#3235) * Update param types in docblocks (#3237) * PHPORM-275 PHPORM-276 Add `Query\Builder::search()` and `autocomplete()` (#3232) * PHPORM-277 Add `Builder::vectorSearch()` (#3242) * PHPORM-286 Add `Query::countByGroup()` and other `aggregateByGroup()` functions (#3243) * PHPORM-286 Add Query::countByGroup and other aggregateByGroup functions * Support counting distinct values with aggregate by group * Disable fail-fast due to Atlas issues * PHPORM-209 Add query builder helper to set read preference (#3244) * PHPORM-209 Add query builder helper to set read preference * Support query timeout as decimal number of seconds * PHPORM-28 Add Scout engine to index into MongoDB Search (#3205) * Split Atlas tests into a distinct workflow matrix (#3245) * DOCSP-45877: txn parallel ops not supported (#3247) * DOCSP-45877: txn parallel ops not supported * small fix * DOCSP-45877: txn parallel ops not supported (#3247) (#3250) * DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52eef5910b1a56ec3d4c322cf320582fcaae) * DOCSP-45877: txn parallel ops not supported (#3247) (#3249) * DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52eef5910b1a56ec3d4c322cf320582fcaae) * DOCSP-45065: sessions documentation (#3254) * DOCSP-45065: sessions documentation * MW PR fixes 1 * JT tech review 1 * small fix error in build * DOCSP-45065: sessions page quick fix (#3256) * DOCSP-45065: sessions documentation * MW PR fixes 1 * JT tech review 1 * small fix error in build * DOCSP-45065: quick fix to full PR * Add template types to relation classes (#3262) * Add tests on doesntExist (#3257) * DOCSP-38327: add Query Builder examples to usage examples (#3259) * DOCSP-38327: add qb examples to usage exs * add imports * wip * formatting * wip * fix tests? * fix tests? * wip * wip * wip: * formatting * formatting * formatting * fix tests * fix tests * small text changes * fix error * JS PR fixes 1 * add extra tests for each type of query * formatting * remove sort from deleteOne * fix CI error * Update output based on return type * DOCSP-46438: Read preference (#3260) * DOCSP-46438: Read preference * edits * tip * fix test * fix * code * JS feedback * Switch example to SECONDARY_PREFERRED * JT feedback * apply phpcbf formatting * tests --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * PHPORM-295 VectorSearch path cannot be an array (#3263) * DOCSP-46269: atlas search & atlas vector search pages (#3255) * DOCSP-46269: as & avs * wip * wip * wip * JT small fix * wip * wip * link fix * merge upstream and make some changes from last PR * revert changes to sessions page - will separate into another PR * LM PR fixes 1 * small note * filename change * LM PR fixes 2 * wip * wip * fix term links * fixes * JT small fixes * indentation fix * DOCSP-35943: write operations reorg (#3275) * DOCSP-35943: write operations reorg * reusability * wip * NR PR fixes 1 * title fix * DOCSP-46269 Fix doc examples on atlas search (#3279) * PHPORM-296 Enable support for Scout v10 (#3280) * PHPORM-268 Add configuration for scout search indexes (#3281) * DOCSP-38130: Time series collections (#3274) * DOCSP-38130: Time sereies collections * apply phpcbf formatting * fix * build error * JT feedback * apply phpcbf formatting * fixes * apply phpcbf formatting * JT feedback 2 * PHPORM-302 Compatibility with spatie/laravel-query-builder v6 (#3285) * PHPORM-303 Require mongodb library v1.21 with aggregation builder (#3287) * PHPORM-299 Enable PHPUnit 11 (#3286) * DOCSP-46230: atlas search index mgmt (#3270) * DOCSP-46230: atlas search index mgmt * fix * fix * small fix * wip * wip * wip * wip * test php link * test php link * RM PR fixes 1 * JT suggestion - move code to tests * DOCSP-44554: add more aggregation examples (#3272) * DOCSP-44554: add more agg exs * import model fps * fix formatting * CI errors * language formatting * MW PR fixes 1 * JT small fix * PHPORM-278 Introduce `Connection::getDatabase()` and `getClient` (#3289) Deprecate getMongoDB and get MongoClient Replace selectDatabase with getDatabase * Rename Connection::getMongoDB to getDatabase * Jerome suggestion * DOCSP-35945: read operations reorg (#3293) * DOCSP-35945: read operations reorg * skip * small fixes * small fixes * fixes - RM and moved a section * link fic * PHPORM-289 Support Laravel 12 (#3283) * Remove suggestion of archived package mongodb/builder (#3296) Now part of the mongodb/mongodb package * Fix releasing from development branch (#3299) * DOCSP-48028: v5.2 release (#3297) * DOCSP-48028: v5.2 release * wip * wip * add keyword * Merges the read operation reorganization into 5.2 (#3301) * DOCSP-35945: read operations reorg (#3293) * DOCSP-35945: read operations reorg * skip * small fixes * small fixes * fixes - RM and moved a section * link fic * Fix releasing from development branch (#3299) --------- Co-authored-by: MongoDB PHP Bot <162451593+mongodb-php-bot@users.noreply.github.com> Co-authored-by: Andreas Braun <andreas.braun@mongodb.com> * DOCSP-46479: document Scout integration (#3261) * DOCSP-46479: document Scout integration * NR PR fixes 1 * fix spacing * fix spacing * fix spacing * fix spacing * NR PR fixes 2 * JT tech comment * fix spacing * JT tech review 1 * JT tech review 1 * custom index * link to atlas doc * DOCSP-48018: laravel 12 feature compat (#3304) * DOCSP-48018: laravel 12 feature compat * small fixes * JT fix * DOCSP-47950: Fix all operator section (#3308) * DOCSP-47950: Fix all operator section * review feedback * Remove link to builder package/repo (#3312) * Bump ramsey/composer-install from 3.0.0 to 3.1.0 (#3317) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@3.0.0...3.1.0) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix line spacing in feature compat doc (#3315) * PHPORM-306 Test with MongoDB Driver v2 (#3319) * Remove manual dirty _id check when updating a model (#3329) * DOCSP-48956: replace tutorial link (#3333) * PHPORM-311 Fix Update of numeric field name (#3336) * PHPORM-311 Fix Update of numeric field name * Use array_replace where keys must be preserved * DOCSP-48817: php v2 extension compat (#3339) * DOCSP-48817: php v2 extension compat * small fix * PHPORM-255 Enable disabling the `id` to `_id` field rename in embedded documents (#3332) * Use stable version of mongodb extension v2 (#3343) * Fixes: getting immutable_datetime property fails if `Date::use(CarbonImmutable::class)` is set (#3342) * DOCSP-49236: v5.3 release (#3344) * DOCSP-49217: disable id alias conversion in embedded docs (#3346) * DOCSP-49217: disable id alias conversion in embedded docs * add cross link * typo fix * JT tech review comment * JT tech review comment 2 * PHPORM-319 Make branch 4.x compatible with driver v2 (#3347) * PHPORM-320 Fix aliasing .id field path to ._id (#3353) * PHPORM-310 Create dedicated session handler (#3348) * DOCSP-49293: feature compatibility joins (#3355) * DOCSP-49294 Add MDB Extension section to compat page (#3357) * Fix namespace of test classes (#3361) Spotted with composer dump-autoload --strict-psr --optimize * PHPORM-325 Add `getViews` and categorize table types (#3327) * DOCSP-49324: dedicated session handler (#3364) * Replaced a too strict assertion in DatabaseSessionHandler that prevented to use the sessions at all with a more simple sanity check (#3366) Set zend.assertions=1 --------- Co-authored-by: Toni Vega <toni@flexvega.com> Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Replaced a too strict assertion in DatabaseSessionHandler that prevented to use the sessions at all with a more simple sanity check (#3366) (#3368) Set zend.assertions=1 --------- Co-authored-by: Toni Vega <1808267+tonivega@users.noreply.github.com> * Remove usage of deprecated getMongoDB method (#3367) * Validate PSR namespaces in CI (#3363) * PHPORM-331 Fix test on query payload (#3375) New properties added by laravel/framework#55529 * PHPORM-330 Fix: Convert query duration time to milliseconds (#3374) * Convert query duration time to milliseconds * Test that query time is expressed in milliseconds --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * DOCSP-49784: View file typo (#3376) * DOCSP-49784: View file typo (#3376) (#3378) * DOCSP-49784: View file typo (#3376) (cherry picked from commit 0dc4a99819f2efad886dab7f6aa7c9a01fd2ddd3) * fix test * Fix database name extraction from DSN containing a CA file path (#3381) * DOCSP-50023: remove eol server version mentions (#3387) * [docs] add limitation to transactions page (#3389) * Bump ramsey/composer-install from 3.1.0 to 3.1.1 (#3393) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@3.1.0...3.1.1) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-version: 3.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Extract duplicated collection methods in `Builder` The logic for fetching views and collections are very nearly the same bar aggregation support. * Add collation to `getCollections` and `getViews` Although it's not displayed anywhere other than `db:table` for now, the `collation` column is present in some of laravel's artisan dabase commands. * Add Pauline as a maintainer * Change string literals in `SchemaTest` to constants * Add conditional return type to `Builder::raw()` (#3395) for both the Eloquent and the Query builder, so that developers can understand that the return type will either be a `Collection` or an `Expression` based on the argument that's passed to `raw()` * DOCSP-48860: DOCS+ tutorial - Laravel MongoDB backend (#3386) * DOCSP-48860: DOCS+ tutorial WIP * wip * add to toc * LM PR fixes 1 * fix spacing * LM PR fixes 2 * Support adding schema validation (#3397) To support the '$jsonSchema' operation on collections * DOCSP-50472: schema validation (#3400) * DOCSP-50472: schema validation * apply phpcbf formatting * small wording fix * fixes * log error * fix int type * wip * PV tech review 1 * PHPORM-351 `QueryBuilder` multiply and divide support (#3373) * DOCSP-43518: logging (#3316) * DOCSP-43518: query logging * formatting * remove controller * tests * tests * tests * tests * test * test * test * test * test * formatting * Fix test on output --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Bump PHP to 8.2 in Docker test container (#3399) * DOCSP-50607: multiply/divide QB methods (#3403) * DOCSP-50607: multiply/divide QB methods * separate mul & div examples * add versioning * wip * Bump stefanzweifel/git-auto-commit-action from 5 to 6 (#3409) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 6. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](stefanzweifel/git-auto-commit-action@v5...v6) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Limit CI workflows to supported branches (#3411) * Fix YAML indentation * Limit CI workflows to supported branches * Run CI for feature branches * Improve error handling on unsupported hybrid queries (#3404) Hybrid belongs-to-many relationships are not supported for query constraints. However, the support check was done downstream of a bunch of Eloquent stuff, resulting in the user getting an exception that didn't tell them anything about the usage being unsupported. This moves that check further up the chain so that the user is alerted to the lack of support before we do anything else. * DOCSP-50781: Update SoftDeletes references (#3413) * Deprecate Mongo soft deletes trait (#3408) In favor of the Laravel one. Ours is now obsolete; the SoftDeletes trait is only necessary to remove the call to qualifyColumn in the parent trait. But the DocumentModel::qualifyColumn is already disabled * Add Mongo builder mixin to `DocumentModel` (#3417) It helps with autocompletion as IDEs will recognize Mongo builder methods that are not present on the base builder. * PHPORM-361 Remove autocommit of CS fixes (#3420) * DOCSP-51402: schema-flexible terminology (#3421) * PHPORM-146: Add override attribute everywhere (#3412) * Add `#[Override]` attributes to `Query\Builder` to keep track of the methods we're overriding on the base builder * Add `#[Override]` attribute to `MongoBatchRepository` * Add `#[Override]` attribute to `MongoLock` * Add attribute to Eloquent builder * Add `#[Override]` attribute to `MongoQueue` * Add `#[Override]` attribute to relationship classes * Add `#[Override]` attribute to `Schema` namespace classes * Add attribute to session handler * Add `#[Override]` attribute to Validation namespace * Add `#[Override]` attribute to `CommandSubscriber` * Add `#[Override] attribute to `Connection` * Add `#[Override]` attribute to `ServiceProvider` implementations * DOCSP-51402: schema-flexible terminology (#3424) * PHPORM-361 Remove autocommit of CS fixes (#3420) * DOCSP-51402: schema-flexible terminology (#3424) * DOCSP-50960: Install PHP ext with pie (#3419) * DOCSP-50960: Install PHP ext with pie (#3419) (#3426) (cherry picked from commit a77aa60df132a8ec0d3f18c0bae652e5ee5a969a) * PHPORM-369: Fix ID handling when using insert method instead of save (#3429) * Fix ID handling when using insert method instead of save * Add test with non-incrementing model * Clean repo root * add content * remove unnecessary content --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> Co-authored-by: MongoDB PHP Bot <162451593+mongodb-php-bot@users.noreply.github.com> Co-authored-by: Mike Woofter <108414937+mongoKart@users.noreply.github.com> Co-authored-by: Nora Reidy <nora.reidy@mongodb.com> Co-authored-by: Jason <llamorin.jasonbusiness@gmail.com> Co-authored-by: Rea Rustagi <85902999+rustagir@users.noreply.github.com> Co-authored-by: norareidy <norareidy@users.noreply.github.com> Co-authored-by: rustagir <rea.rustagi@mongodb.com> Co-authored-by: JaeYeong Choi <80824142+verduck@users.noreply.github.com> Co-authored-by: Andreas Braun <andreas.braun@mongodb.com> Co-authored-by: Mohammad Mortazavi <39920372+hans-thomas@users.noreply.github.com> Co-authored-by: Fuyuki <fuyuki0511@gmail.com> Co-authored-by: lindseymoore <71525840+lindseymoore@users.noreply.github.com> Co-authored-by: Barış Kartal <kartalbaris@gmail.com> Co-authored-by: Brad Miller <28307684+mad-briller@users.noreply.github.com> Co-authored-by: Michael Morisi <michael.morisi@mongodb.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Todorovic <ivan.todorovic17@gmail.com> Co-authored-by: Sainesh Mamgain <saineshmamgain@gmail.com> Co-authored-by: Stephanie <52582720+stephmarie17@users.noreply.github.com> Co-authored-by: Toni Vega <1808267+tonivega@users.noreply.github.com> Co-authored-by: Toni Vega <toni@flexvega.com> Co-authored-by: Amir Reza Mehrbakhsh <amirrezax@hotmail.com> Co-authored-by: fergusean <fergusean@gmail.com> Co-authored-by: Pauline Vos <pauline.vos@mongodb.com> Co-authored-by: Pauline Vos <pvos88@gmail.com> Co-authored-by: Faissal Wahabali <fwahabali@gmail.com>
mongodb-server-docs-sync-bot bot
pushed a commit
that referenced
this pull request
Jul 23, 2025
* PHPORM-216 Remove $collection setting from DocumentModel and Connection::collection(). Use $table and Connection::table() instead (#3104) * PHPORM-227 Fix single document upsert (#3100) * DOCSP-42818: wherelike and wherenotlike docs (#3114) * DOCSP-42818: wherelike and wherenotlike docs * heading fix * move section * wip * add cross link * PHPORM-229 Make Query\Builder return objects instead of array to match Laravel's behavior (#3107) * version bump * DOCSP-42794: Laravel Passport (#3113) Adds a section to the User Authentication page that describes Laravel Passport. * Update PR template (#3121) * PHPORM-231 Remove MongoFailedJobProvider (#3122) * Remove MongoDBQueueServiceProvider in composer.json (#3131) Class "MongoDB\Laravel\MongoDBQueueServiceProvider" not found due to being removed in this commit mongodb/laravel-mongodb@a0b6134 * Remove support for Laravel 10 (#3123) * PHPORM-234 Convert dates in DB Query results (#3119) Use the current timezone when reading an UTCDateTime * PHPORM-157 Remove Blueprint::background() (#3132) * PHPORM-235 Remove custom DatabaseTokenRepository (#3124) * DOCSP-43158: carbon date values db query results (#3133) * DOCSP-43158: carbon date values db query results * add to upgrade guide * wip * PHPORM-236 Remove _id from query results (#3136) * DOCSP-41335: Id field alias (#3042) Adds information and an example of the ID field alias. --------- Co-authored-by: norareidy <norareidy@users.noreply.github.com> Co-authored-by: rustagir <rea.rustagi@mongodb.com> * PHPORM-56 Replace Collection proxy class with Driver monitoring (#3137) * Modernize code with rector (#3139) * DOCSP-43172: Remove DatabaseTokenRepository class (#3130) * DOCSP-43172: Remove DatabaseTokenRepository class * JT feedback * edit * JT feedback 2 * DOCSP-43159: QB returns objects (#3135) * DOCSP-43159: QB returns objects * add to upgrade guide * add depth layer * JT tech review 2 * wip * DOCSP-42956: Remove $collection support (#3138) Adds a note about removed $collection and collection() support to the upgrade guide. * DOCSP-42957: DateTimeInterface in queries (#3140) Adds information & a code example about automatic conversion from DateTimeInterface to UTCDateTime in queries. * Add options to countDocuments method (#3142) * Update merge-up config for new branch pattern (#3143) * Update changelog (#3144) * Update changelog (#3144) (#3147) Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Re-enable support for Laravel 10 (#3148) * DOCSP-43539: v5 release (#3154) * DOCSP-43539: v5 release * toc reshuffle * DOCSP-43530: Id field in query results (#3149) Adds information about ID field representation in query builder results * PHPORM-241 Add return type to CommandSubscriber (#3157) * PHPORM-205: Automate branch creation when releasing (#3145) * Automate branch creation when releasing * Apply feedback from code review * PHPORM-241 Add return type to CommandSubscriber (#3158) * PHPORM-239 Convert `_id` and `UTCDateTime` in results of `Model::raw()` before hydratation (#3152) * PHPORM-243 Alias `_id` to `id` in `Schema::getColumns()` (#3160) * PHPORM-243 Alias _id to id in Schema::getColumns * Support hasColumn for nested id * Owner key for morphTo relations (#3162) * Remove changelog, use release notes instead (#3164) * DOCSP-43806: getColumns id alias (#3165) * DOCSP-43806: getColumns id alias * JT tech review 1 * PHPORM-248 register command subscriber only when logs are enabled (#3167) * Fix `Query\Builder::pluck()` with `ObjectId` as key (#3169) Conversion of ObjectId to string is done in Laravel https://github.com/laravel/framework/blob/646520ad682d98b5211c6e26092259cfbe130b5c/src/Illuminate/Collections/Arr.php#L562 --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * PHPORM-207 Convert arrow notation -> to dot . (#3170) * DOCSP-43615: raw() field conversions (#3172) * DOCSP-43615: raw() ID conversion * utcdatetime * wording * DOCSP-44172: Laravel Herd (#3171) Adds information about Laravel Herd to the quick start * Docs changes v5.1 (#3174) Adds raw() field conversions and Laravel Herd information * DOCSP-44158: Convert arrow to dot notation (#3173) Adds information about dot and arrow notation conversion in v5.1 * DOCSP-44177: 5.1 compatibility (#3177) Compatibility table updates for v5.1 * Typo in upgrade doc (#3180) * DOCSP-44610: fix php links (#3185) * DOCSP-44610: fix php links * use php directive * Don't add invalid regions to SARIF report (#3193) * PHPORM-259 Register MongoDB Session Handler with `SESSION_DRIVER=mongodb` (#3192) * PHPORM-259 Register MongoDB Session Handler with SESSION_DRIVER=mongodb * Explicit dependency to symfony/http-foundation * DOCSP-42964: Remove nested component (#3198) * Disable mongoc_client reuse between connections (#3197) * Increase connection timeouts to allow using Atlas shared clusters (#3206) * PHPORM-263 Fix deprecation message for collection/table config in MongoDBQueueServiceProvider (#3209) * DOCSP-45411: qb options (#3208) * DOCSP-45411: qb options * link * NR PR fixes 1 * DOCSP-44949 TOC Relabel (#3204) * DOCSP-44949 TOC Relabel * indent * DOCSP-42020: queues feedback (#3221) * DOCSP-42020: queues feedback * JS small fix * DOCSP-42020: queues feedback 5.0 (#3222) * DOCSP-42020: queues feedback (cherry picked from commit 830ba9f2ab00f637c30e1f2526ea4b18ddc4ab0c) * DOCSP-42020: queues feedback - 5.0+ * JS small fix * replace cxn with db in tables * PHPORM-274 List search indexes in `Schema::getIndexes()` introspection method (#3233) * PHPORM-273 Add schema helpers to create search and vector indexes (#3230) * Fix tests on Schema index helpers (#3236) Add helpers for index exists/not-exists * PHPORM-266 Run tests on Atlas Local (#3216) * PHPORM-283 Add `Schema::dropSearchIndex()` (#3235) * Update param types in docblocks (#3237) * PHPORM-275 PHPORM-276 Add `Query\Builder::search()` and `autocomplete()` (#3232) * PHPORM-277 Add `Builder::vectorSearch()` (#3242) * PHPORM-286 Add `Query::countByGroup()` and other `aggregateByGroup()` functions (#3243) * PHPORM-286 Add Query::countByGroup and other aggregateByGroup functions * Support counting distinct values with aggregate by group * Disable fail-fast due to Atlas issues * PHPORM-209 Add query builder helper to set read preference (#3244) * PHPORM-209 Add query builder helper to set read preference * Support query timeout as decimal number of seconds * PHPORM-28 Add Scout engine to index into MongoDB Search (#3205) * Split Atlas tests into a distinct workflow matrix (#3245) * DOCSP-45877: txn parallel ops not supported (#3247) * DOCSP-45877: txn parallel ops not supported * small fix * DOCSP-45877: txn parallel ops not supported (#3247) (#3250) * DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52eef5910b1a56ec3d4c322cf320582fcaae) * DOCSP-45877: txn parallel ops not supported (#3247) (#3249) * DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52eef5910b1a56ec3d4c322cf320582fcaae) * DOCSP-45065: sessions documentation (#3254) * DOCSP-45065: sessions documentation * MW PR fixes 1 * JT tech review 1 * small fix error in build * DOCSP-45065: sessions page quick fix (#3256) * DOCSP-45065: sessions documentation * MW PR fixes 1 * JT tech review 1 * small fix error in build * DOCSP-45065: quick fix to full PR * Add template types to relation classes (#3262) * Add tests on doesntExist (#3257) * DOCSP-38327: add Query Builder examples to usage examples (#3259) * DOCSP-38327: add qb examples to usage exs * add imports * wip * formatting * wip * fix tests? * fix tests? * wip * wip * wip: * formatting * formatting * formatting * fix tests * fix tests * small text changes * fix error * JS PR fixes 1 * add extra tests for each type of query * formatting * remove sort from deleteOne * fix CI error * Update output based on return type * DOCSP-46438: Read preference (#3260) * DOCSP-46438: Read preference * edits * tip * fix test * fix * code * JS feedback * Switch example to SECONDARY_PREFERRED * JT feedback * apply phpcbf formatting * tests --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * PHPORM-295 VectorSearch path cannot be an array (#3263) * DOCSP-46269: atlas search & atlas vector search pages (#3255) * DOCSP-46269: as & avs * wip * wip * wip * JT small fix * wip * wip * link fix * merge upstream and make some changes from last PR * revert changes to sessions page - will separate into another PR * LM PR fixes 1 * small note * filename change * LM PR fixes 2 * wip * wip * fix term links * fixes * JT small fixes * indentation fix * DOCSP-35943: write operations reorg (#3275) * DOCSP-35943: write operations reorg * reusability * wip * NR PR fixes 1 * title fix * DOCSP-46269 Fix doc examples on atlas search (#3279) * PHPORM-296 Enable support for Scout v10 (#3280) * PHPORM-268 Add configuration for scout search indexes (#3281) * DOCSP-38130: Time series collections (#3274) * DOCSP-38130: Time sereies collections * apply phpcbf formatting * fix * build error * JT feedback * apply phpcbf formatting * fixes * apply phpcbf formatting * JT feedback 2 * PHPORM-302 Compatibility with spatie/laravel-query-builder v6 (#3285) * PHPORM-303 Require mongodb library v1.21 with aggregation builder (#3287) * PHPORM-299 Enable PHPUnit 11 (#3286) * DOCSP-46230: atlas search index mgmt (#3270) * DOCSP-46230: atlas search index mgmt * fix * fix * small fix * wip * wip * wip * wip * test php link * test php link * RM PR fixes 1 * JT suggestion - move code to tests * DOCSP-44554: add more aggregation examples (#3272) * DOCSP-44554: add more agg exs * import model fps * fix formatting * CI errors * language formatting * MW PR fixes 1 * JT small fix * PHPORM-278 Introduce `Connection::getDatabase()` and `getClient` (#3289) Deprecate getMongoDB and get MongoClient Replace selectDatabase with getDatabase * Rename Connection::getMongoDB to getDatabase * Jerome suggestion * DOCSP-35945: read operations reorg (#3293) * DOCSP-35945: read operations reorg * skip * small fixes * small fixes * fixes - RM and moved a section * link fic * PHPORM-289 Support Laravel 12 (#3283) * Remove suggestion of archived package mongodb/builder (#3296) Now part of the mongodb/mongodb package * Fix releasing from development branch (#3299) * DOCSP-48028: v5.2 release (#3297) * DOCSP-48028: v5.2 release * wip * wip * add keyword * Merges the read operation reorganization into 5.2 (#3301) * DOCSP-35945: read operations reorg (#3293) * DOCSP-35945: read operations reorg * skip * small fixes * small fixes * fixes - RM and moved a section * link fic * Fix releasing from development branch (#3299) --------- Co-authored-by: MongoDB PHP Bot <162451593+mongodb-php-bot@users.noreply.github.com> Co-authored-by: Andreas Braun <andreas.braun@mongodb.com> * DOCSP-46479: document Scout integration (#3261) * DOCSP-46479: document Scout integration * NR PR fixes 1 * fix spacing * fix spacing * fix spacing * fix spacing * NR PR fixes 2 * JT tech comment * fix spacing * JT tech review 1 * JT tech review 1 * custom index * link to atlas doc * DOCSP-48018: laravel 12 feature compat (#3304) * DOCSP-48018: laravel 12 feature compat * small fixes * JT fix * DOCSP-47950: Fix all operator section (#3308) * DOCSP-47950: Fix all operator section * review feedback * Remove link to builder package/repo (#3312) * Bump ramsey/composer-install from 3.0.0 to 3.1.0 (#3317) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@3.0.0...3.1.0) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix line spacing in feature compat doc (#3315) * PHPORM-306 Test with MongoDB Driver v2 (#3319) * Remove manual dirty _id check when updating a model (#3329) * DOCSP-48956: replace tutorial link (#3333) * PHPORM-311 Fix Update of numeric field name (#3336) * PHPORM-311 Fix Update of numeric field name * Use array_replace where keys must be preserved * DOCSP-48817: php v2 extension compat (#3339) * DOCSP-48817: php v2 extension compat * small fix * PHPORM-255 Enable disabling the `id` to `_id` field rename in embedded documents (#3332) * Use stable version of mongodb extension v2 (#3343) * Fixes: getting immutable_datetime property fails if `Date::use(CarbonImmutable::class)` is set (#3342) * DOCSP-49236: v5.3 release (#3344) * DOCSP-49217: disable id alias conversion in embedded docs (#3346) * DOCSP-49217: disable id alias conversion in embedded docs * add cross link * typo fix * JT tech review comment * JT tech review comment 2 * PHPORM-320 Fix aliasing .id field path to ._id (#3353) * PHPORM-310 Create dedicated session handler (#3348) * DOCSP-49293: feature compatibility joins (#3355) * Fix namespace of test classes (#3361) Spotted with composer dump-autoload --strict-psr --optimize * PHPORM-325 Add `getViews` and categorize table types (#3327) * DOCSP-49324: dedicated session handler (#3364) * Replaced a too strict assertion in DatabaseSessionHandler that prevented to use the sessions at all with a more simple sanity check (#3366) Set zend.assertions=1 --------- Co-authored-by: Toni Vega <toni@flexvega.com> Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Replaced a too strict assertion in DatabaseSessionHandler that prevented to use the sessions at all with a more simple sanity check (#3366) (#3368) Set zend.assertions=1 --------- Co-authored-by: Toni Vega <1808267+tonivega@users.noreply.github.com> * Remove usage of deprecated getMongoDB method (#3367) * Validate PSR namespaces in CI (#3363) * PHPORM-331 Fix test on query payload (#3375) New properties added by laravel/framework#55529 * PHPORM-330 Fix: Convert query duration time to milliseconds (#3374) * Convert query duration time to milliseconds * Test that query time is expressed in milliseconds --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * DOCSP-49784: View file typo (#3376) (#3378) * DOCSP-49784: View file typo (#3376) (cherry picked from commit 0dc4a99819f2efad886dab7f6aa7c9a01fd2ddd3) * fix test * Fix database name extraction from DSN containing a CA file path (#3381) * DOCSP-50023: remove eol server version mentions (#3387) * [docs] add limitation to transactions page (#3389) * Bump ramsey/composer-install from 3.1.0 to 3.1.1 (#3393) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@3.1.0...3.1.1) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-version: 3.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Extract duplicated collection methods in `Builder` The logic for fetching views and collections are very nearly the same bar aggregation support. * Add collation to `getCollections` and `getViews` Although it's not displayed anywhere other than `db:table` for now, the `collation` column is present in some of laravel's artisan dabase commands. * Add Pauline as a maintainer * Change string literals in `SchemaTest` to constants * Add conditional return type to `Builder::raw()` (#3395) for both the Eloquent and the Query builder, so that developers can understand that the return type will either be a `Collection` or an `Expression` based on the argument that's passed to `raw()` * DOCSP-48860: DOCS+ tutorial - Laravel MongoDB backend (#3386) * DOCSP-48860: DOCS+ tutorial WIP * wip * add to toc * LM PR fixes 1 * fix spacing * LM PR fixes 2 * Support adding schema validation (#3397) To support the '$jsonSchema' operation on collections * DOCSP-50472: schema validation (#3400) * DOCSP-50472: schema validation * apply phpcbf formatting * small wording fix * fixes * log error * fix int type * wip * PV tech review 1 * PHPORM-351 `QueryBuilder` multiply and divide support (#3373) * DOCSP-43518: logging (#3316) * DOCSP-43518: query logging * formatting * remove controller * tests * tests * tests * tests * test * test * test * test * test * formatting * Fix test on output --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Bump PHP to 8.2 in Docker test container (#3399) * DOCSP-50607: multiply/divide QB methods (#3403) * DOCSP-50607: multiply/divide QB methods * separate mul & div examples * add versioning * wip * Bump stefanzweifel/git-auto-commit-action from 5 to 6 (#3409) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 6. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](stefanzweifel/git-auto-commit-action@v5...v6) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Limit CI workflows to supported branches (#3411) * Fix YAML indentation * Limit CI workflows to supported branches * Run CI for feature branches * Improve error handling on unsupported hybrid queries (#3404) Hybrid belongs-to-many relationships are not supported for query constraints. However, the support check was done downstream of a bunch of Eloquent stuff, resulting in the user getting an exception that didn't tell them anything about the usage being unsupported. This moves that check further up the chain so that the user is alerted to the lack of support before we do anything else. * DOCSP-50781: Update SoftDeletes references (#3413) * Deprecate Mongo soft deletes trait (#3408) In favor of the Laravel one. Ours is now obsolete; the SoftDeletes trait is only necessary to remove the call to qualifyColumn in the parent trait. But the DocumentModel::qualifyColumn is already disabled * Add Mongo builder mixin to `DocumentModel` (#3417) It helps with autocompletion as IDEs will recognize Mongo builder methods that are not present on the base builder. * PHPORM-361 Remove autocommit of CS fixes (#3420) * PHPORM-146: Add override attribute everywhere (#3412) * Add `#[Override]` attributes to `Query\Builder` to keep track of the methods we're overriding on the base builder * Add `#[Override]` attribute to `MongoBatchRepository` * Add `#[Override]` attribute to `MongoLock` * Add attribute to Eloquent builder * Add `#[Override]` attribute to `MongoQueue` * Add `#[Override]` attribute to relationship classes * Add `#[Override]` attribute to `Schema` namespace classes * Add attribute to session handler * Add `#[Override]` attribute to Validation namespace * Add `#[Override]` attribute to `CommandSubscriber` * Add `#[Override] attribute to `Connection` * Add `#[Override]` attribute to `ServiceProvider` implementations * DOCSP-51402: schema-flexible terminology (#3424) * PHPORM-361 Remove autocommit of CS fixes (#3420) * DOCSP-51402: schema-flexible terminology (#3424) * DOCSP-50960: Install PHP ext with pie (#3419) * DOCSP-50960: Install PHP ext with pie (#3419) (#3426) (cherry picked from commit a77aa60df132a8ec0d3f18c0bae652e5ee5a969a) * PHPORM-369: Fix ID handling when using insert method instead of save (#3429) * Fix ID handling when using insert method instead of save * Add test with non-incrementing model * Clean repo root * add content --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: MongoDB PHP Bot <162451593+mongodb-php-bot@users.noreply.github.com> Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> Co-authored-by: Rea Rustagi <85902999+rustagir@users.noreply.github.com> Co-authored-by: Mike Woofter <108414937+mongoKart@users.noreply.github.com> Co-authored-by: Nora Reidy <nora.reidy@mongodb.com> Co-authored-by: Jason <llamorin.jasonbusiness@gmail.com> Co-authored-by: norareidy <norareidy@users.noreply.github.com> Co-authored-by: rustagir <rea.rustagi@mongodb.com> Co-authored-by: JaeYeong Choi <80824142+verduck@users.noreply.github.com> Co-authored-by: Andreas Braun <andreas.braun@mongodb.com> Co-authored-by: Mohammad Mortazavi <39920372+hans-thomas@users.noreply.github.com> Co-authored-by: Fuyuki <fuyuki0511@gmail.com> Co-authored-by: lindseymoore <71525840+lindseymoore@users.noreply.github.com> Co-authored-by: Barış Kartal <kartalbaris@gmail.com> Co-authored-by: Brad Miller <28307684+mad-briller@users.noreply.github.com> Co-authored-by: Michael Morisi <michael.morisi@mongodb.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Todorovic <ivan.todorovic17@gmail.com> Co-authored-by: Sainesh Mamgain <saineshmamgain@gmail.com> Co-authored-by: Toni Vega <1808267+tonivega@users.noreply.github.com> Co-authored-by: Toni Vega <toni@flexvega.com> Co-authored-by: Amir Reza Mehrbakhsh <amirrezax@hotmail.com> Co-authored-by: fergusean <fergusean@gmail.com> Co-authored-by: Pauline Vos <pauline.vos@mongodb.com> Co-authored-by: Pauline Vos <pvos88@gmail.com> Co-authored-by: Faissal Wahabali <fwahabali@gmail.com>
mongodb-server-docs-sync-bot bot
pushed a commit
that referenced
this pull request
Jul 23, 2025
* PHPORM-216 Remove $collection setting from DocumentModel and Connection::collection(). Use $table and Connection::table() instead (#3104) * PHPORM-227 Fix single document upsert (#3100) * DOCSP-42818: wherelike and wherenotlike docs (#3114) * DOCSP-42818: wherelike and wherenotlike docs * heading fix * move section * wip * add cross link * PHPORM-229 Make Query\Builder return objects instead of array to match Laravel's behavior (#3107) * version bump * DOCSP-42794: Laravel Passport (#3113) Adds a section to the User Authentication page that describes Laravel Passport. * Update PR template (#3121) * PHPORM-231 Remove MongoFailedJobProvider (#3122) * Remove MongoDBQueueServiceProvider in composer.json (#3131) Class "MongoDB\Laravel\MongoDBQueueServiceProvider" not found due to being removed in this commit mongodb/laravel-mongodb@a0b6134 * Remove support for Laravel 10 (#3123) * PHPORM-234 Convert dates in DB Query results (#3119) Use the current timezone when reading an UTCDateTime * PHPORM-157 Remove Blueprint::background() (#3132) * PHPORM-235 Remove custom DatabaseTokenRepository (#3124) * DOCSP-43158: carbon date values db query results (#3133) * DOCSP-43158: carbon date values db query results * add to upgrade guide * wip * PHPORM-236 Remove _id from query results (#3136) * DOCSP-41335: Id field alias (#3042) Adds information and an example of the ID field alias. --------- Co-authored-by: norareidy <norareidy@users.noreply.github.com> Co-authored-by: rustagir <rea.rustagi@mongodb.com> * PHPORM-56 Replace Collection proxy class with Driver monitoring (#3137) * Modernize code with rector (#3139) * DOCSP-43172: Remove DatabaseTokenRepository class (#3130) * DOCSP-43172: Remove DatabaseTokenRepository class * JT feedback * edit * JT feedback 2 * DOCSP-43159: QB returns objects (#3135) * DOCSP-43159: QB returns objects * add to upgrade guide * add depth layer * JT tech review 2 * wip * DOCSP-42956: Remove $collection support (#3138) Adds a note about removed $collection and collection() support to the upgrade guide. * DOCSP-42957: DateTimeInterface in queries (#3140) Adds information & a code example about automatic conversion from DateTimeInterface to UTCDateTime in queries. * Add options to countDocuments method (#3142) * Update merge-up config for new branch pattern (#3143) * Update changelog (#3144) * Update changelog (#3144) (#3147) Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Re-enable support for Laravel 10 (#3148) * DOCSP-43539: v5 release (#3154) * DOCSP-43539: v5 release * toc reshuffle * DOCSP-43530: Id field in query results (#3149) Adds information about ID field representation in query builder results * PHPORM-241 Add return type to CommandSubscriber (#3157) * PHPORM-205: Automate branch creation when releasing (#3145) * Automate branch creation when releasing * Apply feedback from code review * PHPORM-241 Add return type to CommandSubscriber (#3158) * PHPORM-239 Convert `_id` and `UTCDateTime` in results of `Model::raw()` before hydratation (#3152) * PHPORM-243 Alias `_id` to `id` in `Schema::getColumns()` (#3160) * PHPORM-243 Alias _id to id in Schema::getColumns * Support hasColumn for nested id * Owner key for morphTo relations (#3162) * Remove changelog, use release notes instead (#3164) * DOCSP-43806: getColumns id alias (#3165) * DOCSP-43806: getColumns id alias * JT tech review 1 * PHPORM-248 register command subscriber only when logs are enabled (#3167) * Fix `Query\Builder::pluck()` with `ObjectId` as key (#3169) Conversion of ObjectId to string is done in Laravel https://github.com/laravel/framework/blob/646520ad682d98b5211c6e26092259cfbe130b5c/src/Illuminate/Collections/Arr.php#L562 --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * PHPORM-207 Convert arrow notation -> to dot . (#3170) * DOCSP-43615: raw() field conversions (#3172) * DOCSP-43615: raw() ID conversion * utcdatetime * wording * DOCSP-44172: Laravel Herd (#3171) Adds information about Laravel Herd to the quick start * Docs changes v5.1 (#3174) Adds raw() field conversions and Laravel Herd information * DOCSP-44158: Convert arrow to dot notation (#3173) Adds information about dot and arrow notation conversion in v5.1 * DOCSP-44177: 5.1 compatibility (#3177) Compatibility table updates for v5.1 * Typo in upgrade doc (#3180) * DOCSP-44610: fix php links (#3185) * DOCSP-44610: fix php links * use php directive * Don't add invalid regions to SARIF report (#3193) * PHPORM-259 Register MongoDB Session Handler with `SESSION_DRIVER=mongodb` (#3192) * PHPORM-259 Register MongoDB Session Handler with SESSION_DRIVER=mongodb * Explicit dependency to symfony/http-foundation * DOCSP-42964: Remove nested component (#3198) * Disable mongoc_client reuse between connections (#3197) * Increase connection timeouts to allow using Atlas shared clusters (#3206) * PHPORM-263 Fix deprecation message for collection/table config in MongoDBQueueServiceProvider (#3209) * DOCSP-45411: qb options (#3208) * DOCSP-45411: qb options * link * NR PR fixes 1 * DOCSP-44949 TOC Relabel (#3204) * DOCSP-44949 TOC Relabel * indent * DOCSP-42020: queues feedback (#3221) * DOCSP-42020: queues feedback * JS small fix * DOCSP-42020: queues feedback 5.0 (#3222) * DOCSP-42020: queues feedback (cherry picked from commit 830ba9f2ab00f637c30e1f2526ea4b18ddc4ab0c) * DOCSP-42020: queues feedback - 5.0+ * JS small fix * replace cxn with db in tables * PHPORM-274 List search indexes in `Schema::getIndexes()` introspection method (#3233) * PHPORM-273 Add schema helpers to create search and vector indexes (#3230) * Fix tests on Schema index helpers (#3236) Add helpers for index exists/not-exists * PHPORM-266 Run tests on Atlas Local (#3216) * PHPORM-283 Add `Schema::dropSearchIndex()` (#3235) * Update param types in docblocks (#3237) * PHPORM-275 PHPORM-276 Add `Query\Builder::search()` and `autocomplete()` (#3232) * PHPORM-277 Add `Builder::vectorSearch()` (#3242) * PHPORM-286 Add `Query::countByGroup()` and other `aggregateByGroup()` functions (#3243) * PHPORM-286 Add Query::countByGroup and other aggregateByGroup functions * Support counting distinct values with aggregate by group * Disable fail-fast due to Atlas issues * PHPORM-209 Add query builder helper to set read preference (#3244) * PHPORM-209 Add query builder helper to set read preference * Support query timeout as decimal number of seconds * PHPORM-28 Add Scout engine to index into MongoDB Search (#3205) * Split Atlas tests into a distinct workflow matrix (#3245) * DOCSP-45877: txn parallel ops not supported (#3247) * DOCSP-45877: txn parallel ops not supported * small fix * DOCSP-45877: txn parallel ops not supported (#3247) (#3250) * DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52eef5910b1a56ec3d4c322cf320582fcaae) * DOCSP-45877: txn parallel ops not supported (#3247) (#3249) * DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52eef5910b1a56ec3d4c322cf320582fcaae) * DOCSP-45065: sessions documentation (#3254) * DOCSP-45065: sessions documentation * MW PR fixes 1 * JT tech review 1 * small fix error in build * DOCSP-45065: sessions page quick fix (#3256) * DOCSP-45065: sessions documentation * MW PR fixes 1 * JT tech review 1 * small fix error in build * DOCSP-45065: quick fix to full PR * Add template types to relation classes (#3262) * Add tests on doesntExist (#3257) * DOCSP-38327: add Query Builder examples to usage examples (#3259) * DOCSP-38327: add qb examples to usage exs * add imports * wip * formatting * wip * fix tests? * fix tests? * wip * wip * wip: * formatting * formatting * formatting * fix tests * fix tests * small text changes * fix error * JS PR fixes 1 * add extra tests for each type of query * formatting * remove sort from deleteOne * fix CI error * Update output based on return type * DOCSP-46438: Read preference (#3260) * DOCSP-46438: Read preference * edits * tip * fix test * fix * code * JS feedback * Switch example to SECONDARY_PREFERRED * JT feedback * apply phpcbf formatting * tests --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * PHPORM-295 VectorSearch path cannot be an array (#3263) * DOCSP-46269: atlas search & atlas vector search pages (#3255) * DOCSP-46269: as & avs * wip * wip * wip * JT small fix * wip * wip * link fix * merge upstream and make some changes from last PR * revert changes to sessions page - will separate into another PR * LM PR fixes 1 * small note * filename change * LM PR fixes 2 * wip * wip * fix term links * fixes * JT small fixes * indentation fix * DOCSP-35943: write operations reorg (#3275) * DOCSP-35943: write operations reorg * reusability * wip * NR PR fixes 1 * title fix * DOCSP-46269 Fix doc examples on atlas search (#3279) * PHPORM-296 Enable support for Scout v10 (#3280) * PHPORM-268 Add configuration for scout search indexes (#3281) * DOCSP-38130: Time series collections (#3274) * DOCSP-38130: Time sereies collections * apply phpcbf formatting * fix * build error * JT feedback * apply phpcbf formatting * fixes * apply phpcbf formatting * JT feedback 2 * PHPORM-302 Compatibility with spatie/laravel-query-builder v6 (#3285) * PHPORM-303 Require mongodb library v1.21 with aggregation builder (#3287) * PHPORM-299 Enable PHPUnit 11 (#3286) * DOCSP-46230: atlas search index mgmt (#3270) * DOCSP-46230: atlas search index mgmt * fix * fix * small fix * wip * wip * wip * wip * test php link * test php link * RM PR fixes 1 * JT suggestion - move code to tests * DOCSP-44554: add more aggregation examples (#3272) * DOCSP-44554: add more agg exs * import model fps * fix formatting * CI errors * language formatting * MW PR fixes 1 * JT small fix * PHPORM-278 Introduce `Connection::getDatabase()` and `getClient` (#3289) Deprecate getMongoDB and get MongoClient Replace selectDatabase with getDatabase * Rename Connection::getMongoDB to getDatabase * Jerome suggestion * DOCSP-35945: read operations reorg (#3293) * DOCSP-35945: read operations reorg * skip * small fixes * small fixes * fixes - RM and moved a section * link fic * PHPORM-289 Support Laravel 12 (#3283) * Remove suggestion of archived package mongodb/builder (#3296) Now part of the mongodb/mongodb package * Fix releasing from development branch (#3299) * DOCSP-48028: v5.2 release (#3297) * DOCSP-48028: v5.2 release * wip * wip * add keyword * Merges the read operation reorganization into 5.2 (#3301) * DOCSP-35945: read operations reorg (#3293) * DOCSP-35945: read operations reorg * skip * small fixes * small fixes * fixes - RM and moved a section * link fic * Fix releasing from development branch (#3299) --------- Co-authored-by: MongoDB PHP Bot <162451593+mongodb-php-bot@users.noreply.github.com> Co-authored-by: Andreas Braun <andreas.braun@mongodb.com> * DOCSP-46479: document Scout integration (#3261) * DOCSP-46479: document Scout integration * NR PR fixes 1 * fix spacing * fix spacing * fix spacing * fix spacing * NR PR fixes 2 * JT tech comment * fix spacing * JT tech review 1 * JT tech review 1 * custom index * link to atlas doc * DOCSP-48018: laravel 12 feature compat (#3304) * DOCSP-48018: laravel 12 feature compat * small fixes * JT fix * DOCSP-47950: Fix all operator section (#3308) * DOCSP-47950: Fix all operator section * review feedback * Remove link to builder package/repo (#3312) * Bump ramsey/composer-install from 3.0.0 to 3.1.0 (#3317) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@3.0.0...3.1.0) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix line spacing in feature compat doc (#3315) * PHPORM-306 Test with MongoDB Driver v2 (#3319) * Remove manual dirty _id check when updating a model (#3329) * DOCSP-48956: replace tutorial link (#3333) * PHPORM-311 Fix Update of numeric field name (#3336) * PHPORM-311 Fix Update of numeric field name * Use array_replace where keys must be preserved * DOCSP-48817: php v2 extension compat (#3339) * DOCSP-48817: php v2 extension compat * small fix * PHPORM-255 Enable disabling the `id` to `_id` field rename in embedded documents (#3332) * Use stable version of mongodb extension v2 (#3343) * Fixes: getting immutable_datetime property fails if `Date::use(CarbonImmutable::class)` is set (#3342) * DOCSP-49236: v5.3 release (#3344) * DOCSP-49217: disable id alias conversion in embedded docs (#3346) * DOCSP-49217: disable id alias conversion in embedded docs * add cross link * typo fix * JT tech review comment * JT tech review comment 2 * PHPORM-320 Fix aliasing .id field path to ._id (#3353) * PHPORM-310 Create dedicated session handler (#3348) * DOCSP-49293: feature compatibility joins (#3355) * Fix namespace of test classes (#3361) Spotted with composer dump-autoload --strict-psr --optimize * PHPORM-325 Add `getViews` and categorize table types (#3327) * DOCSP-49324: dedicated session handler (#3364) * Replaced a too strict assertion in DatabaseSessionHandler that prevented to use the sessions at all with a more simple sanity check (#3366) Set zend.assertions=1 --------- Co-authored-by: Toni Vega <toni@flexvega.com> Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Replaced a too strict assertion in DatabaseSessionHandler that prevented to use the sessions at all with a more simple sanity check (#3366) (#3368) Set zend.assertions=1 --------- Co-authored-by: Toni Vega <1808267+tonivega@users.noreply.github.com> * Remove usage of deprecated getMongoDB method (#3367) * Validate PSR namespaces in CI (#3363) * PHPORM-331 Fix test on query payload (#3375) New properties added by laravel/framework#55529 * PHPORM-330 Fix: Convert query duration time to milliseconds (#3374) * Convert query duration time to milliseconds * Test that query time is expressed in milliseconds --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * DOCSP-49784: View file typo (#3376) (#3378) * DOCSP-49784: View file typo (#3376) (cherry picked from commit 0dc4a99819f2efad886dab7f6aa7c9a01fd2ddd3) * fix test * Fix database name extraction from DSN containing a CA file path (#3381) * DOCSP-50023: remove eol server version mentions (#3387) * [docs] add limitation to transactions page (#3389) * Bump ramsey/composer-install from 3.1.0 to 3.1.1 (#3393) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@3.1.0...3.1.1) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-version: 3.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Extract duplicated collection methods in `Builder` The logic for fetching views and collections are very nearly the same bar aggregation support. * Add collation to `getCollections` and `getViews` Although it's not displayed anywhere other than `db:table` for now, the `collation` column is present in some of laravel's artisan dabase commands. * Add Pauline as a maintainer * Change string literals in `SchemaTest` to constants * Add conditional return type to `Builder::raw()` (#3395) for both the Eloquent and the Query builder, so that developers can understand that the return type will either be a `Collection` or an `Expression` based on the argument that's passed to `raw()` * DOCSP-48860: DOCS+ tutorial - Laravel MongoDB backend (#3386) * DOCSP-48860: DOCS+ tutorial WIP * wip * add to toc * LM PR fixes 1 * fix spacing * LM PR fixes 2 * Support adding schema validation (#3397) To support the '$jsonSchema' operation on collections * DOCSP-50472: schema validation (#3400) * DOCSP-50472: schema validation * apply phpcbf formatting * small wording fix * fixes * log error * fix int type * wip * PV tech review 1 * PHPORM-351 `QueryBuilder` multiply and divide support (#3373) * DOCSP-43518: logging (#3316) * DOCSP-43518: query logging * formatting * remove controller * tests * tests * tests * tests * test * test * test * test * test * formatting * Fix test on output --------- Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> * Bump PHP to 8.2 in Docker test container (#3399) * DOCSP-50607: multiply/divide QB methods (#3403) * DOCSP-50607: multiply/divide QB methods * separate mul & div examples * add versioning * wip * Bump stefanzweifel/git-auto-commit-action from 5 to 6 (#3409) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 6. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](stefanzweifel/git-auto-commit-action@v5...v6) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Limit CI workflows to supported branches (#3411) * Fix YAML indentation * Limit CI workflows to supported branches * Run CI for feature branches * Improve error handling on unsupported hybrid queries (#3404) Hybrid belongs-to-many relationships are not supported for query constraints. However, the support check was done downstream of a bunch of Eloquent stuff, resulting in the user getting an exception that didn't tell them anything about the usage being unsupported. This moves that check further up the chain so that the user is alerted to the lack of support before we do anything else. * DOCSP-50781: Update SoftDeletes references (#3413) * Deprecate Mongo soft deletes trait (#3408) In favor of the Laravel one. Ours is now obsolete; the SoftDeletes trait is only necessary to remove the call to qualifyColumn in the parent trait. But the DocumentModel::qualifyColumn is already disabled * Add Mongo builder mixin to `DocumentModel` (#3417) It helps with autocompletion as IDEs will recognize Mongo builder methods that are not present on the base builder. * PHPORM-361 Remove autocommit of CS fixes (#3420) * PHPORM-146: Add override attribute everywhere (#3412) * Add `#[Override]` attributes to `Query\Builder` to keep track of the methods we're overriding on the base builder * Add `#[Override]` attribute to `MongoBatchRepository` * Add `#[Override]` attribute to `MongoLock` * Add attribute to Eloquent builder * Add `#[Override]` attribute to `MongoQueue` * Add `#[Override]` attribute to relationship classes * Add `#[Override]` attribute to `Schema` namespace classes * Add attribute to session handler * Add `#[Override]` attribute to Validation namespace * Add `#[Override]` attribute to `CommandSubscriber` * Add `#[Override] attribute to `Connection` * Add `#[Override]` attribute to `ServiceProvider` implementations * DOCSP-51402: schema-flexible terminology (#3424) * PHPORM-361 Remove autocommit of CS fixes (#3420) * DOCSP-51402: schema-flexible terminology (#3424) * DOCSP-50960: Install PHP ext with pie (#3419) * DOCSP-50960: Install PHP ext with pie (#3419) (#3426) (cherry picked from commit a77aa60df132a8ec0d3f18c0bae652e5ee5a969a) * PHPORM-369: Fix ID handling when using insert method instead of save (#3429) * Fix ID handling when using insert method instead of save * Add test with non-incrementing model * Clean repo root * add content --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: MongoDB PHP Bot <162451593+mongodb-php-bot@users.noreply.github.com> Co-authored-by: Jérôme Tamarelle <jerome.tamarelle@mongodb.com> Co-authored-by: Rea Rustagi <85902999+rustagir@users.noreply.github.com> Co-authored-by: Mike Woofter <108414937+mongoKart@users.noreply.github.com> Co-authored-by: Nora Reidy <nora.reidy@mongodb.com> Co-authored-by: Jason <llamorin.jasonbusiness@gmail.com> Co-authored-by: norareidy <norareidy@users.noreply.github.com> Co-authored-by: rustagir <rea.rustagi@mongodb.com> Co-authored-by: JaeYeong Choi <80824142+verduck@users.noreply.github.com> Co-authored-by: Andreas Braun <andreas.braun@mongodb.com> Co-authored-by: Mohammad Mortazavi <39920372+hans-thomas@users.noreply.github.com> Co-authored-by: Fuyuki <fuyuki0511@gmail.com> Co-authored-by: lindseymoore <71525840+lindseymoore@users.noreply.github.com> Co-authored-by: Barış Kartal <kartalbaris@gmail.com> Co-authored-by: Brad Miller <28307684+mad-briller@users.noreply.github.com> Co-authored-by: Michael Morisi <michael.morisi@mongodb.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Todorovic <ivan.todorovic17@gmail.com> Co-authored-by: Sainesh Mamgain <saineshmamgain@gmail.com> Co-authored-by: Toni Vega <1808267+tonivega@users.noreply.github.com> Co-authored-by: Toni Vega <toni@flexvega.com> Co-authored-by: Amir Reza Mehrbakhsh <amirrezax@hotmail.com> Co-authored-by: fergusean <fergusean@gmail.com> Co-authored-by: Pauline Vos <pauline.vos@mongodb.com> Co-authored-by: Pauline Vos <pvos88@gmail.com> Co-authored-by: Faissal Wahabali <fwahabali@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…fo on catchUpTimeoutMillis.
This change is