Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
953815f
Upgrade to PHPStan 2.1 (#2761)
GromNaN Apr 29, 2025
45bb9eb
Make XSD more strict for other Document types (#2766)
GromNaN May 20, 2025
9cc8291
Catch BulkWriteException, since WriteException is removed from ext-mo…
GromNaN May 23, 2025
3783f0e
Merge release 2.11.2 into 2.12.x (#2772)
GromNaN May 23, 2025
02c9ce7
Deprecate APM\Command::getServer(), add getPort and getHost instead (…
GromNaN May 26, 2025
b0909ca
Remove unnecessary `assert` calls (#2775)
GromNaN May 26, 2025
6f4f0fb
Bump doctrine/.github from 7.2.2 to 7.3.0 (#2777)
dependabot[bot] Jun 10, 2025
2715d7c
Skip search indexes not enabled exception
paulinevos Jul 8, 2025
a69de4c
Merge pull request #2787 from paulinevos/356_skip-not-enabled-error
paulinevos Jul 9, 2025
aba7b30
Update "Custom Mapping Types" documentation for a fully working examp…
fnash Jul 9, 2025
98c0b7f
Format event names in lifecycle callbacks list
GromNaN Aug 5, 2025
dcfc75b
Merge pull request #2792 from GromNaN/doc-event-code
malarzm Aug 6, 2025
f66e9e4
Hide PHPStan issue with $collections type
GromNaN Aug 8, 2025
5770267
Run tests with MongoDB 8.0 replica set (#2798)
GromNaN Aug 9, 2025
5224ec4
Update maintained versions file (#2799)
GromNaN Aug 11, 2025
8030f02
Merge pull request #2800 from doctrine/2.11.x
GromNaN Aug 11, 2025
eea60a0
Bump actions/checkout from 4 to 5 (#2804)
dependabot[bot] Aug 18, 2025
4f3dbd0
Enable ClassLocator from Doctrine Persistence 4.1 (#2802)
GromNaN Aug 27, 2025
7c0fbe7
Add Automatic Queryable Encryption (#2779)
GromNaN Aug 28, 2025
6fdccee
Merge pull request #2807 from doctrine/2.11.x
GromNaN Aug 29, 2025
d12f52f
Update active branch for the docs website (#2806)
GromNaN Aug 29, 2025
afb565e
Allow to paginate `$search` aggregation with `searchBefore` and `sear…
GromNaN Aug 29, 2025
c88837c
Merge remote-tracking branch 'upstream/3.0.x' into 2.12.x-merge-up-in…
GromNaN Aug 29, 2025
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
97 changes: 34 additions & 63 deletions .doctrine-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,142 +5,113 @@
"slug": "mongodb-odm",
"docsSlug": "doctrine-mongodb-odm",
"versions": [
{
"name": "2.13",
"branchName": "2.13.x",
"slug": "latest",
"upcoming": true
},
{
"name": "2.12",
"branchName": "2.12.x",
"slug": "latest",
"current": true
},
{
"name": "2.11",
"branchName": "2.11.x",
"slug": "2.11",
"maintained": false
},
{
"name": "2.10",
"branchName": "2.10.x",
"slug": "latest",
"upcoming": true,
"aliases": [
"2.10.x"
]
"slug": "2.10",
"maintained": false
},
{
"name": "2.9",
"branchName": "2.9.x",
"slug": "2.9",
"current": true,
"aliases": [
"current",
"stable",
"2.9.x"
]
"maintained": false
},
{
"name": "2.8",
"branchName": "2.8.x",
"slug": "2.8",
"maintained": false,
"aliases": [
"2.8.x"
]
"maintained": false
},
{
"name": "2.7",
"branchName": "2.7.x",
"slug": "2.7",
"maintained": false,
"aliases": [
"2.7.x"
]
"maintained": false
},
{
"name": "2.6",
"branchName": "2.6.x",
"slug": "2.6",
"maintained": false,
"aliases": [
"2.6.x"
]
"maintained": false
},
{
"name": "2.5",
"branchName": "2.5.x",
"slug": "2.5",
"maintained": false,
"aliases": [
"2.5.x"
]
"maintained": false
},
{
"name": "2.4",
"branchName": "2.4.x",
"slug": "2.4",
"maintained": false,
"aliases": [
"2.4.x"
]
"maintained": false
},
{
"name": "2.3",
"branchName": "2.3.x",
"slug": "2.3",
"maintained": false,
"aliases": [
"2.3.x"
]
"maintained": false
},
{
"name": "2.2",
"branchName": "2.2.x",
"slug": "2.2",
"maintained": false,
"aliases": [
"2.2.x"
]
"maintained": false
},
{
"name": "2.1",
"branchName": "2.1.x",
"slug": "2.1",
"maintained": false,
"aliases": [
"2.1.x"
]
"maintained": false
},
{
"name": "2.0",
"branchName": "2.0.x",
"slug": "2.0",
"maintained": false,
"aliases": [
"2.0.x"
]
"maintained": false
},
{
"name": "1.3",
"branchName": "1.3.x",
"slug": "1.3",
"maintained": false,
"aliases": [
"1.3.x"
]
"maintained": false
},
{
"name": "1.2",
"branchName": "1.2.x",
"slug": "1.2",
"maintained": false,
"aliases": [
"1.2.x"
]
"maintained": false
},
{
"name": "1.1",
"branchName": "1.1.x",
"slug": "1.1",
"maintained": false,
"aliases": [
"1.1.x"
]
"maintained": false
},
{
"name": "1.0",
"branchName": "1.0.x",
"slug": "1.0",
"maintained": false,
"aliases": [
"1.0.x"
]
"maintained": false
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ on:
jobs:
coding-standards:
name: "Coding Standards"
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.2.2"
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.3.0"
11 changes: 10 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ jobs:
dependencies: "highest"
symfony-version: "stable"
proxy: "lazy-ghost"
# Test with a 8.0 replica set
- topology: "replica_set"
php-version: "8.2"
mongodb-version: "8.0"
driver-version: "stable"
dependencies: "highest"
symfony-version: "stable"
proxy: "lazy-ghost"
# Test with ProxyManager
- php-version: "8.2"
mongodb-version: "6.0"
Expand Down Expand Up @@ -89,7 +97,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
uses: "actions/checkout@v5"
with:
fetch-depth: 2

Expand Down Expand Up @@ -155,3 +163,4 @@ jobs:
env:
DOCTRINE_MONGODB_SERVER: ${{ steps.setup-mongodb.outputs.cluster-uri }}
USE_LAZY_GHOST_OBJECTS: ${{ matrix.proxy == 'lazy-ghost' && '1' || '0' }}"
CRYPT_SHARED_LIB_PATH: ${{ steps.setup-mongodb.outputs.crypt-shared-lib-path }}
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v5"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
uses: "actions/checkout@v5"

- name: Setup cache environment
id: extcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
name: "Git tag, release & create merge-up PR"
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.2.2"
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.3.0"
secrets:
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
strategy:
matrix:
php-version:
- "8.2"
- "8.4"

steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v5"

- name: Setup cache environment
id: extcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ on:
jobs:
json-validate:
name: "Validate JSON schema"
uses: "doctrine/.github/.github/workflows/website-schema.yml@7.2.2"
uses: "doctrine/.github/.github/workflows/website-schema.yml@7.3.0"
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"doctrine/instantiator": "^1.1 || ^2",
"doctrine/persistence": "^3.2 || ^4",
"friendsofphp/proxy-manager-lts": "^1.0",
"mongodb/mongodb": "^1.21 || ^2.0@dev",
"mongodb/mongodb": "^1.21.2 || ^2.1.1",
"psr/cache": "^1.0 || ^2.0 || ^3.0",
"symfony/console": "^5.4 || ^6.0 || ^7.0",
"symfony/deprecation-contracts": "^2.2 || ^3.0",
Expand All @@ -44,8 +44,9 @@
"doctrine/orm": "^3.2",
"jmikola/geojson": "^1.0",
"phpbench/phpbench": "^1.0.0",
"phpstan/phpstan": "~1.10.67",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^10.4",
"squizlabs/php_codesniffer": "^3.5",
"symfony/cache": "^5.4 || ^6.0 || ^7.0"
Expand Down
8 changes: 4 additions & 4 deletions docs/en/cookbook/lookup-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ and a date.
#[Field(type: 'date_immutable')]
public DateTimeImmutable $date;

/** @var Collection<Item> */
/** @var Collection<int, Item> */
#[ReferenceMany(
targetDocument: Item::class,
cascade: 'all',
Expand Down Expand Up @@ -378,7 +378,7 @@ You need to create a new class to hold the result of the aggregation.
#[Field(type: 'date_immutable')]
public DateTimeImmutable $date;

/** @var Collection<Item> */
/** @var Collection<int, Item> */
#[EmbedMany(targetDocument: Item::class)]
public Collection $items;

Expand Down Expand Up @@ -631,7 +631,7 @@ but not the user.
#[Field(type: 'string')]
public string $name;

/** @var Collection<UserOrderResult> */
/** @var Collection<int, UserOrderResult> */
#[EmbedMany(targetDocument: UserOrderResult::class)]
public Collection $orders;
}
Expand All @@ -645,7 +645,7 @@ but not the user.
#[Field(type: 'date_immutable')]
public DateTimeImmutable $date;

/** @var Collection<Item> */
/** @var Collection<int, Item> */
#[EmbedMany(targetDocument: Item::class)]
public Collection $items;
}
Expand Down
Loading