Skip to content
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

Merge release 2.20.0 into 3.0.x #11662

Closed
wants to merge 156 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
5049b61
Add TokenType class (#11228)
connorhu Feb 7, 2024
7baef1e
Remove references to deprecated constants from Lexer (#11234)
derrabus Feb 7, 2024
afbf293
Merge pull request #11255 from doctrine/2.18.x
greg0ire Feb 13, 2024
e5e3166
#11090 - Fix obtaining an identifier in cases where the hydration has…
dbannik Feb 13, 2024
b59189a
Merge pull request #11267 from doctrine/2.18.x
greg0ire Feb 17, 2024
c0dfba2
Merge branch '2.18.x' into 2.19.x
derrabus Feb 21, 2024
8d4718f
provides a test case for github issue 11154
Feb 22, 2024
c9c493b
Merge branch '2.18.x' into 2.19.x
derrabus Feb 22, 2024
7797811
Merge pull request #11301 from doctrine/2.18.x
greg0ire Feb 24, 2024
08d3f72
Deprecate invalid method call
greg0ire Feb 25, 2024
abd9186
Merge pull request #11309 from greg0ire/deprecate-invalid-call
greg0ire Feb 26, 2024
791667a
Merge pull request #11317 from doctrine/2.18.x
greg0ire Feb 28, 2024
83c81f6
Merge branch '2.18.x' into 2.19.x
derrabus Feb 29, 2024
98f9de2
Merge branch '2.18.x' into 2.19.x
derrabus Mar 1, 2024
e62571c
Refator array_map into simple loop for performance. (#11332)
beberlei Mar 2, 2024
12e0cef
Merge branch '2.18.x' into 2.19.x
derrabus Mar 3, 2024
bd4449c
Merge branch '2.18.x' into 2.19.x
derrabus Mar 3, 2024
a809a71
Prepare releases 2.19 and 3.1 (#11335)
derrabus Mar 3, 2024
9acca22
Remove guides-specific markup
greg0ire Mar 11, 2024
94d45a0
Merge pull request #11347 from greg0ire/remove-orphan
greg0ire Mar 11, 2024
16f355f
Remove tests for already working case as they add no value other than…
beberlei Mar 16, 2024
e399d21
Simplify condition, improve comment on this edge case.
beberlei Mar 16, 2024
6501890
Static analysis enforces the extra isset() even though that just mask…
beberlei Mar 16, 2024
1b6cf58
Rename tables to avoid pg related illegal table name
beberlei Mar 16, 2024
abcad6f
Merge pull request #11090 from dbannik/2.17.x-failed-getting-entity-w…
greg0ire Mar 16, 2024
a3e3a3b
Merge pull request #11360 from doctrine/2.19.x-merge-up-into-2.20.x_a…
greg0ire Mar 16, 2024
fcd02b1
Cleanup tests not to use model sets.
beberlei Mar 16, 2024
820a0da
Do not schedule batch loading for target classes with composite ident…
beberlei Mar 16, 2024
ae84225
[Documentation] Query Result Formats
ThomasLandauer Mar 17, 2024
4b4b9b7
Adding `NonUniqueResultException`
ThomasLandauer Mar 17, 2024
528ef40
Minor code style fix in AbstractRemoteControl
kaznovac Mar 17, 2024
80aae27
Merge pull request #11373 from kaznovac/patch-3
beberlei Mar 17, 2024
1622b78
Fix entities and mapping.
beberlei Mar 17, 2024
5e6d5c0
Key on fk
beberlei Mar 17, 2024
3e3c023
Switch join columns around, otherwise index doesnt match
beberlei Mar 17, 2024
08a9e60
Remove outdated git metadata files (#11362)
greg0ire Mar 17, 2024
40a0964
Merge pull request #11289 from themasch/reproduce-issue-11154-composi…
greg0ire Mar 18, 2024
bcdc5bd
Merge pull request #11378 from doctrine/2.19.x-merge-up-into-2.20.x_e…
greg0ire Mar 18, 2024
9d1a497
Improve lazy ghost performance by avoiding self-referencing closure. …
beberlei Mar 19, 2024
d15624f
[GH-11185] Bugfix: do not use collection batch loading for indexBy as…
beberlei Mar 20, 2024
5ccbc20
[Documentation] Removing "Doctrine Mapping Types" ... (#11384)
ThomasLandauer Mar 20, 2024
716da7e
Merge branch '2.19.x' into 2.20.x
derrabus Mar 21, 2024
db6e702
Remove unused variable (#11391)
derrabus Mar 21, 2024
083f642
Merge branch '2.19.x' into 2.20.x
derrabus Mar 21, 2024
95795c8
Add missing import
derrabus Mar 21, 2024
1a5a4c6
Set column length explicitly (#11393)
derrabus Mar 21, 2024
46d0865
Update dql-doctrine-query-language.rst
ThomasLandauer Mar 21, 2024
c54c557
Fix psalm errors: remove override of template type
tantegerda1 Mar 22, 2024
be307ed
Merge release 2.19.3 into 2.20.x (#11398)
derrabus Mar 22, 2024
e4a6c04
Merge pull request #11372 from ThomasLandauer/patch-12
greg0ire Mar 23, 2024
6090141
Merge pull request #11389 from tantegerda1/2.19.x
greg0ire Mar 23, 2024
5f3c1db
[Documentation] Merging "Query Result Formats" with "Hydration Modes"
ThomasLandauer Mar 26, 2024
e9e60f2
Merge pull request #11403 from ThomasLandauer/patch-10
greg0ire Mar 28, 2024
8709fb3
Fix templated phpdoc return type (#11407)
VincentLanglet Apr 1, 2024
b274893
Fix BIGINT validation (#11414)
derrabus Apr 15, 2024
b725908
Merge branch '2.19.x' into 2.20.x
derrabus Apr 15, 2024
90376a6
fix(docs): typo
tyteen4a03 Apr 22, 2024
bdc41e2
Merge pull request #11420 from tyteen4a03/patch-1
greg0ire Apr 22, 2024
fb45784
Respect orderBy for EAGER fetch mode
tomr3 Apr 23, 2024
306963f
Merge pull request #11422 from tomasz-ryba/bugfix/fetch-eager-order-by
greg0ire Apr 24, 2024
cbec236
fix: always cleanup in `AbstractHydrator::toIterable()` (#11101)
simPod Apr 25, 2024
7d3b3f2
Update association-mapping.rst
nasimic Apr 25, 2024
2b81a8e
Merge pull request #11426 from nasimic/patch-1
greg0ire Apr 26, 2024
bb36d49
Keep entities in identity map until the scheduled deletions are execu…
xificurk Apr 26, 2024
4e335f4
Remove unused test group
SenseException Apr 26, 2024
8d34460
Merge pull request #11428 from xificurk/keep-removed-entity-in-identi…
greg0ire Apr 27, 2024
c973a62
Merge pull request #11429 from SenseException/unused-test-group
greg0ire Apr 27, 2024
c363f55
Fix deprecation layer
W0rma Apr 29, 2024
ad5c8e4
Make test compatible with PHP 7.1
W0rma Apr 29, 2024
94986af
Merge pull request #11430 from W0rma/fix-deprecation-layer-orm-exception
greg0ire Apr 30, 2024
8b6a58f
Merge pull request #11432 from doctrine/2.19.x-merge-up-into-2.20.x_I…
greg0ire Apr 30, 2024
e6bb4ef
Upgrade codecov/codecov-action
greg0ire May 5, 2024
9ab84f7
Merge pull request #11440 from greg0ire/update-codecov
greg0ire May 5, 2024
f26b3b9
Bump doctrine/.github from 3.0.0 to 5.0.1
dependabot[bot] May 5, 2024
831d865
Merge pull request #11441 from doctrine/dependabot/github_actions/2.1…
greg0ire May 5, 2024
c5291b4
Bump ramsey/composer-install from 2 to 3 (#11442)
dependabot[bot] May 5, 2024
eb49f66
Merge branch '2.19.x' into 2.20.x
derrabus May 21, 2024
ee4b03a
Backport test for Query::setLockMode() (#11463)
derrabus May 21, 2024
552eae3
Test with actual lock modes (#11465)
derrabus May 21, 2024
d668844
PHPStan 1.11.1 (#11466)
derrabus May 21, 2024
d31aabb
Psalm 5.24.0 (#11467)
derrabus May 21, 2024
bf3e082
Merge branch '2.19.x' into 2.20.x
derrabus May 21, 2024
9696c34
Consider usage of setFetchMode when checking for simultaneous usage o…
lo-alixmauro Jan 19, 2024
75bc229
Fix cloning entities
nicolas-grekas May 23, 2024
93c2dd9
update EntityManager#transactional to EntityManager#wrapInTransaction
IndraGunawan May 20, 2024
4a01a76
Merge pull request #11460 from IndraGunawan/update-transactional-doc
greg0ire May 28, 2024
e063926
Merge pull request #11445 from aprat84/gh-11128
greg0ire May 30, 2024
23b35e9
Merge pull request #11475 from nicolas-grekas/fix-clone
greg0ire Jun 1, 2024
06eca40
Use ramsey/composer-install in PHPBench workflow
greg0ire May 5, 2024
3a7d7c9
Merge pull request #11484 from greg0ire/backport-ramsey
greg0ire Jun 2, 2024
59c8bc0
Replace assertion with exception (#11489)
greg0ire Jun 3, 2024
87a8ee2
fix(docs): use string value in `addAttribute`
SamMousa Jun 11, 2024
bdc9679
Merge pull request #11493 from SamMousa/fix-docs-11492
greg0ire Jun 11, 2024
39153fd
ci: maintained and stable mariadb version (11.4 current lts) (#11490)
grooverdan Jun 13, 2024
3b49913
Skip joined entity creation for empty relation (#10889)
noemi-salaun Jan 28, 2024
858a1ad
Merge pull request #11194 from noemi-salaun/fix/gh10889
greg0ire Jun 14, 2024
e4d46c4
Fix OneToManyPersister::deleteEntityCollection missing discriminator …
gitbugr Jun 14, 2024
cc2ad19
Merge pull request #11501 from gitbugr/2.19.x
greg0ire Jun 17, 2024
6874448
Undeprecate PARTIAL for array hydration. (#11366)
beberlei Jun 18, 2024
066ec1a
Fix upgrade guide for 2.20 (#11504)
derrabus Jun 18, 2024
83851a9
Merge branch '2.19.x' into 2.20.x
derrabus Jun 18, 2024
2ea6a1a
Remove unneeded CS rule
greg0ire Jun 19, 2024
96d13ac
Fetching entities with Composite Key Relations and null values
michalbundyra Jun 3, 2024
802f20b
Merge pull request #11509 from greg0ire/remove-unneeded-rule
greg0ire Jun 19, 2024
77467cd
Address doctrine/persistence 3.3.3 release
greg0ire Jun 20, 2024
68af854
Merge pull request #11513 from greg0ire/address-persistence-3.3.3-rel…
greg0ire Jun 20, 2024
d0e9177
Merge pull request #11514 from doctrine/2.19.x
greg0ire Jun 20, 2024
40f299f
Merge pull request #11506 from michalbundyra/composite-key-relations-3
greg0ire Jun 21, 2024
e3d7c60
Use modern array syntax in the doc
GromNaN Jun 26, 2024
c1bb2cc
Merge pull request #11526 from GromNaN/patch-1
greg0ire Jun 26, 2024
7d01f19
Merge pull request #11531 from doctrine/2.19.x-merge-up-into-2.20.x_Q…
greg0ire Jun 27, 2024
19129e9
working-with-objects.rst: added missing white space
k00ni Jun 28, 2024
c37b115
Merge pull request #11534 from k00ni/patch-1
greg0ire Jun 28, 2024
9bd51aa
Fix the support for custom parameter types in native queries
stof Jul 3, 2024
51ad860
Merge pull request #11543 from stof/fix_native_query_parameter_type
greg0ire Jul 4, 2024
121158f
GH11551 - fix OneToManyPersister::deleteEntityCollection when using
gitbugr Aug 3, 2024
2707b09
fix spacing
gitbugr Aug 3, 2024
8ac6a13
Merge pull request #11564 from gitbugr/GH11501_fix_o2m_persister_sing…
greg0ire Aug 5, 2024
fe4a2e8
Original entity data resolves inverse 1-1 joins
mcurland Aug 17, 2024
168ac31
Merge pull request #11109 from mcurland/Fix11108
greg0ire Aug 23, 2024
74ef282
Merge pull request #11582 from doctrine/2.19.x-merge-up-into-2.20.x_0…
greg0ire Aug 23, 2024
6cde337
PHPStan 1.12 (#11585)
derrabus Aug 27, 2024
25d5bc5
Move orphan metadata to where it belongs
greg0ire Sep 27, 2024
1bf4603
Merge pull request #11615 from greg0ire/move-orphan
greg0ire Sep 29, 2024
2432939
Bump doctrine/.github from 5.0.1 to 5.1.0 (#11616)
dependabot[bot] Sep 30, 2024
b7fd824
Update attributes-reference.rst
n0099 Oct 1, 2024
d18126a
Merge pull request #11618 from n0099/patch-1
greg0ire Oct 1, 2024
91709c1
fix generating duplicate method stubs
timum-viw Oct 5, 2024
b13564c
Make nullable parameters explicit in generated entities (#11625)
derrabus Oct 8, 2024
2245149
Merge branch '2.19.x' into 2.20.x
derrabus Oct 8, 2024
cc28fed
Replace custom directives with native option
greg0ire Oct 8, 2024
0c0c61c
Merge pull request #11627 from greg0ire/no-custom-directives
greg0ire Oct 8, 2024
ad80e82
Merge branch '2.19.x' into 2.20.x
derrabus Oct 8, 2024
6580688
Add CI job for PHP 8.4
greg0ire Oct 8, 2024
08328ad
Use E_ALL instead of E_ALL | E_STRICT
greg0ire Oct 8, 2024
109042e
Merge pull request #11631 from greg0ire/php84-ci
greg0ire Oct 9, 2024
0e48b19
Prepare PHP 8.4 support: Prevent property hooks from being used (#11628)
beberlei Oct 9, 2024
8a25b26
Add upgrade note about property hooks (#11636)
greg0ire Oct 9, 2024
bc37f75
PHPStan 1.12.6 (#11635)
derrabus Oct 9, 2024
58287bb
Merge branch '2.19.x' into 2.20.x
derrabus Oct 9, 2024
5266029
Let PHPStan detect deprecated usages (#11639)
derrabus Oct 9, 2024
d80a831
Stop recommending vendor-prefixed PHPDoc (#11640)
derrabus Oct 9, 2024
16a8f10
Remove a misleading comment (#11644)
mpdude Oct 9, 2024
896c655
Deprecate the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker(…
mpdude Oct 9, 2024
488a5dd
Remove vendor prefix of PHPDoc referencing class-string (#11643)
derrabus Oct 9, 2024
51be1b1
Run risky code in finally block
greg0ire Oct 9, 2024
b6137c8
Add guard clause
greg0ire Oct 10, 2024
bac1c17
Remove submodule remnant
greg0ire Oct 10, 2024
6281c2b
Merge pull request #11655 from greg0ire/submodule-cleanup
greg0ire Oct 10, 2024
c2c5000
Merge pull request #11646 from greg0ire/finally-fix-bug
greg0ire Oct 10, 2024
14f2572
Merge pull request #11656 from doctrine/2.19.x
greg0ire Oct 10, 2024
bea454e
[GH-8471] undeprecate partials completly (#11647)
beberlei Oct 10, 2024
39d2136
Fix different first/max result values taking up query cache space (#…
mpdude Oct 10, 2024
ee0d719
test: cover all transactional methods in `EntityManagerTest::testItPr…
simPod Oct 11, 2024
ff612b9
Merge pull request #11660 from simPod/test-method
greg0ire Oct 11, 2024
8ed6c22
Merge pull request #11661 from doctrine/2.19.x
greg0ire Oct 11, 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
30 changes: 27 additions & 3 deletions .doctrine-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,47 @@
"slug": "orm",
"docsSlug": "doctrine-orm",
"versions": [
{
"name": "4.0",
"branchName": "4.0.x",
"slug": "latest",
"upcoming": true
},
{
"name": "3.2",
"branchName": "3.2.x",
"slug": "3.2",
"upcoming": true
},
{
"name": "3.1",
"branchName": "3.1.x",
"slug": "3.1",
"current": true
},
{
"name": "3.0",
"branchName": "3.0.x",
"slug": "latest",
"slug": "3.0",
"maintained": false
},
{
"name": "2.20",
"branchName": "2.20.x",
"slug": "2.20",
"upcoming": true
},
{
"name": "2.19",
"branchName": "2.19.x",
"slug": "2.19",
"upcoming": true
"maintained": true
},
{
"name": "2.18",
"branchName": "2.18.x",
"slug": "2.18",
"current": true
"maintained": false
},
{
"name": "2.17",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ on:

jobs:
coding-standards:
uses: "doctrine/.github/.github/workflows/coding-standards.yml@3.0.0"
uses: "doctrine/.github/.github/workflows/coding-standards.yml@5.1.0"
26 changes: 16 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
dbal-version:
- "default"
extension:
Expand Down Expand Up @@ -80,7 +81,7 @@ jobs:
if: "${{ matrix.dbal-version != 'default' }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--ignore-platform-req=php+"

Expand Down Expand Up @@ -113,6 +114,7 @@ jobs:
php-version:
- "8.2"
- "8.3"
- "8.4"
dbal-version:
- "default"
- "3@dev"
Expand Down Expand Up @@ -162,7 +164,7 @@ jobs:
if: "${{ matrix.dbal-version != 'default' }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--ignore-platform-req=php+"

Expand All @@ -186,11 +188,12 @@ jobs:
php-version:
- "8.2"
- "8.3"
- "8.4"
dbal-version:
- "default"
- "3@dev"
mariadb-version:
- "10.9"
- "11.4"
extension:
- "mysqli"
- "pdo_mysql"
Expand All @@ -204,11 +207,11 @@ jobs:
mariadb:
image: "mariadb:${{ matrix.mariadb-version }}"
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: "doctrine_tests"
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
MARIADB_DATABASE: "doctrine_tests"

options: >-
--health-cmd "mysqladmin ping --silent"
--health-cmd "healthcheck.sh --connect --innodb_initialized"

ports:
- "3306:3306"
Expand All @@ -232,7 +235,7 @@ jobs:
extensions: "${{ matrix.extension }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--ignore-platform-req=php+"

Expand All @@ -256,6 +259,7 @@ jobs:
php-version:
- "8.2"
- "8.3"
- "8.4"
dbal-version:
- "default"
- "3@dev"
Expand Down Expand Up @@ -302,7 +306,7 @@ jobs:
if: "${{ matrix.dbal-version != 'default' }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--ignore-platform-req=php+"

Expand Down Expand Up @@ -348,7 +352,7 @@ jobs:
ini-values: "zend.assertions=1, apc.enable_cli=1"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.deps }}"

Expand Down Expand Up @@ -377,6 +381,8 @@ jobs:
path: "reports"

- name: "Upload to Codecov"
uses: "codecov/codecov-action@v3"
uses: "codecov/codecov-action@v4"
with:
directory: reports
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
38 changes: 7 additions & 31 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,16 @@ on:
branches:
- "*.x"
paths:
- .github/workflows/documentation.yml
- docs/**
- ".github/workflows/documentation.yml"
- "docs/**"
push:
branches:
- "*.x"
paths:
- .github/workflows/documentation.yml
- docs/**
- ".github/workflows/documentation.yml"
- "docs/**"

jobs:
validate-with-guides:
name: "Validate documentation with phpDocumentor/guides"
runs-on: "ubuntu-22.04"

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

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.3"

- name: "Remove existing composer file"
run: "rm composer.json"

- name: "Require phpdocumentor/guides-cli"
run: "composer require --dev phpdocumentor/guides-cli --no-update"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"

- name: "Run guides-cli"
run: "vendor/bin/guides -vvv --no-progress docs/en 2>&1 | grep -v 'No template found for rendering directive' | ( ! grep WARNING )"
documentation:
name: "Documentation"
uses: "doctrine/.github/.github/workflows/[email protected]"
11 changes: 2 additions & 9 deletions .github/workflows/phpbench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,8 @@ jobs:
coverage: "pcov"
ini-values: "zend.assertions=1, apc.enable_cli=1"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Install dependencies with composer"
run: "composer update --no-interaction --no-progress"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"

- name: "Run PHPBench"
run: "vendor/bin/phpbench run --report=default"
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 @@ -7,7 +7,7 @@ on:

jobs:
release:
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@4.0.0"
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@5.1.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 @@ -58,7 +58,7 @@ jobs:
run: "composer require doctrine/persistence ^$([ ${{ matrix.persistence-version }} = default ] && echo '3.1' || echo ${{ matrix.persistence-version }}) --no-update"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"

Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
run: "composer require doctrine/persistence ^3.1 --no-update"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
| [4.0.x][4.0] | [3.1.x][3.1] | [3.0.x][3.0] | [2.19.x][2.19] | [2.18.x][2.18] |
|:------------------------------------------------------:|:------------------------------------------------------:|:-------------------------------------------------------:|:--------------------------------------------------------:|:---------------------------------------------------------:|
| [![Build status][4.0 image]][4.0] | [![Build status][3.1 image]][3.1] | [![Build status][3.0 image]][3.0] | [![Build status][2.19 image]][2.19] | [![Build status][2.18 image]][2.18] |
| [![Coverage Status][4.0 coverage image]][4.0 coverage] | [![Coverage Status][3.1 coverage image]][3.1 coverage] | [![Coverage Status][3.0 coverage image]][3.0 coverage] | [![Coverage Status][2.19 coverage image]][2.19 coverage] | [![Coverage Status][2.18 coverage image]][2.18 coverage] |
| [4.0.x][4.0] | [3.2.x][3.2] | [3.1.x][3.1] | [2.20.x][2.20] | [2.19.x][2.19] |
|:------------------------------------------------------:|:------------------------------------------------------:|:------------------------------------------------------:|:--------------------------------------------------------:|:--------------------------------------------------------:|
| [![Build status][4.0 image]][4.0] | [![Build status][3.2 image]][3.2] | [![Build status][3.1 image]][3.1] | [![Build status][2.20 image]][2.20] | [![Build status][2.19 image]][2.19] |
| [![Coverage Status][4.0 coverage image]][4.0 coverage] | [![Coverage Status][3.2 coverage image]][3.2 coverage] | [![Coverage Status][3.1 coverage image]][3.1 coverage] | [![Coverage Status][2.20 coverage image]][2.20 coverage] | [![Coverage Status][2.19 coverage image]][2.19 coverage] |

[<h1 align="center">🇺🇦 UKRAINE NEEDS YOUR HELP NOW!</h1>](https://www.doctrine-project.org/stop-war.html)

Expand All @@ -22,19 +22,19 @@ without requiring unnecessary code duplication.
[4.0]: https://github.com/doctrine/orm/tree/4.0.x
[4.0 coverage image]: https://codecov.io/gh/doctrine/orm/branch/4.0.x/graph/badge.svg
[4.0 coverage]: https://codecov.io/gh/doctrine/orm/branch/4.0.x
[3.2 image]: https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=3.2.x
[3.2]: https://github.com/doctrine/orm/tree/3.2.x
[3.2 coverage image]: https://codecov.io/gh/doctrine/orm/branch/3.2.x/graph/badge.svg
[3.2 coverage]: https://codecov.io/gh/doctrine/orm/branch/3.2.x
[3.1 image]: https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=3.1.x
[3.1]: https://github.com/doctrine/orm/tree/3.1.x
[3.1 coverage image]: https://codecov.io/gh/doctrine/orm/branch/3.1.x/graph/badge.svg
[3.1 coverage]: https://codecov.io/gh/doctrine/orm/branch/3.1.x
[3.0 image]: https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=3.0.x
[3.0]: https://github.com/doctrine/orm/tree/3.0.x
[3.0 coverage image]: https://codecov.io/gh/doctrine/orm/branch/3.0.x/graph/badge.svg
[3.0 coverage]: https://codecov.io/gh/doctrine/orm/branch/3.0.x
[2.20 image]: https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=2.20.x
[2.20]: https://github.com/doctrine/orm/tree/2.20.x
[2.20 coverage image]: https://codecov.io/gh/doctrine/orm/branch/2.20.x/graph/badge.svg
[2.20 coverage]: https://codecov.io/gh/doctrine/orm/branch/2.20.x
[2.19 image]: https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=2.19.x
[2.19]: https://github.com/doctrine/orm/tree/2.19.x
[2.19 coverage image]: https://codecov.io/gh/doctrine/orm/branch/2.19.x/graph/badge.svg
[2.19 coverage]: https://codecov.io/gh/doctrine/orm/branch/2.19.x
[2.18 image]: https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=2.18.x
[2.18]: https://github.com/doctrine/orm/tree/2.18.x
[2.18 coverage image]: https://codecov.io/gh/doctrine/orm/branch/2.18.x/graph/badge.svg
[2.18 coverage]: https://codecov.io/gh/doctrine/orm/branch/2.18.x
53 changes: 53 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
# Upgrade to 2.20

## Add `Doctrine\ORM\Query\OutputWalker` interface, deprecate `Doctrine\ORM\Query\SqlWalker::getExecutor()`

Output walkers should implement the new `\Doctrine\ORM\Query\OutputWalker` interface and create
`Doctrine\ORM\Query\Exec\SqlFinalizer` instances instead of `Doctrine\ORM\Query\Exec\AbstractSqlExecutor`s.
The output walker must not base its workings on the query `firstResult`/`maxResult` values, so that the
`SqlFinalizer` can be kept in the query cache and used regardless of the actual `firstResult`/`maxResult` values.
Any operation dependent on `firstResult`/`maxResult` should take place within the `SqlFinalizer::createExecutor()`
method. Details can be found at https://github.com/doctrine/orm/pull/11188.

## Explictly forbid property hooks

Property hooks are not supported yet by Doctrine ORM. Until support is added,
they are explicitly forbidden because the support would result in a breaking
change in behavior.

Progress on this is tracked at https://github.com/doctrine/orm/issues/11624 .

## PARTIAL DQL syntax is undeprecated

Use of the PARTIAL keyword is not deprecated anymore in DQL, because we will be
able to support PARTIAL objects with PHP 8.4 Lazy Objects and
Symfony/VarExporter in a better way. When we decided to remove this feature
these two abstractions did not exist yet.

WARNING: If you want to upgrade to 3.x and still use PARTIAL keyword in DQL
with array or object hydrators, then you have to directly migrate to ORM 3.3.x or higher.
PARTIAL keyword in DQL is not available in 3.0, 3.1 and 3.2 of ORM.

## Deprecate `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()`

Use the `\Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER` query hint to set the output walker
class instead of setting it through the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()` method
on the parser instance.

# Upgrade to 2.19

## Deprecate calling `ClassMetadata::getAssociationMappedByTargetField()` with the owning side of an association

Calling
`Doctrine\ORM\Mapping\ClassMetadata::getAssociationMappedByTargetField()` with
the owning side of an association returns `null`, which is undocumented, and
wrong according to the phpdoc of the parent method.

If you do not know whether you are on the owning or inverse side of an association,
you can use `Doctrine\ORM\Mapping\ClassMetadata::isAssociationInverseSide()`
to find out.

## Deprecate `Doctrine\ORM\Query\Lexer::T_*` constants

Use `Doctrine\ORM\Query\TokenType::T_*` instead.

# Upgrade to 2.17

## Deprecate annotations classes for named queries
Expand Down
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"sort-packages": true
},
Expand All @@ -42,14 +43,16 @@
"doctrine/annotations": "^1.13 || ^2",
"doctrine/coding-standard": "^9.0.2 || ^12.0",
"phpbench/phpbench": "^0.16.10 || ^1.0",
"phpstan/phpstan": "~1.4.10 || 1.10.59",
"phpstan/extension-installer": "~1.1.0 || ^1.4",
"phpstan/phpstan": "~1.4.10 || 1.12.6",
"phpstan/phpstan-deprecation-rules": "^1",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6",
"psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.7.2",
"symfony/cache": "^4.4 || ^5.4 || ^6.4 || ^7.0",
"symfony/var-exporter": "^4.4 || ^5.4 || ^6.2 || ^7.0",
"symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"vimeo/psalm": "4.30.0 || 5.22.2"
"vimeo/psalm": "4.30.0 || 5.24.0"
},
"conflict": {
"doctrine/annotations": "<1.13 || >= 3.0"
Expand Down
4 changes: 0 additions & 4 deletions docs/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions docs/.gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion docs/en/_theme
Submodule _theme deleted from 6f1bc8
Loading