Alexander M. Turek
27c33cf88d
Merge branch '2.20.x' into 3.6.x
...
* 2.20.x:
Make the data provider static
Raise proper exception for invalid arguments in Base::add() (#12394 )
2026-03-12 09:31:56 +01:00
Alexander M. Turek
6068b61a0d
Make the data provider static
2026-03-12 09:24:03 +01:00
Alexander M. Turek
00024f7d88
Raise proper exception for invalid arguments in Base::add() ( #12394 )
2026-03-12 09:05:27 +01:00
Alexander M. Turek
331f8b52cb
Merge branch '2.20.x' into 3.6.x
...
* 2.20.x:
Fix code style (#12395 )
Bump actions/upload-artifact from 6 to 7 (#12387 )
Bump actions/download-artifact from 7 to 8 (#12386 )
2026-03-11 16:55:13 +01:00
Alexander M. Turek
b2faba62b7
Fix code style ( #12395 )
2026-03-11 16:51:15 +01:00
dependabot[bot]
da426a0036
Bump actions/upload-artifact from 6 to 7 ( #12387 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '7'
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>
2026-03-05 00:34:23 +01:00
dependabot[bot]
1891a76f13
Bump actions/download-artifact from 7 to 8 ( #12386 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 7 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v7...v8 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '8'
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>
2026-03-05 00:33:50 +01:00
vvaswani
4262eb495b
fix: update index to be serialized in __sleep() ( #12366 )
...
Signed-off-by: Vikram Vaswani <2571660+vvaswani@users.noreply.github.com `>
2026-01-30 22:41:41 +01:00
Grégoire Paris
d3b47d2cbb
Merge pull request #12355 from doctrine/2.20.x
...
Merge 2.20.x up into 3.6.x
2026-01-25 12:48:28 +01:00
Grégoire Paris
026f5bfe1b
Merge pull request #12350 from greg0ire/missing-order-by
...
Add missing ORDER BY clause
2026-01-18 10:41:46 +01:00
Grégoire Paris
0b0f2f4d86
Add missing ORDER BY clause
...
This causes transient failures with PostgreSQL. Order is not guaranteed.
2026-01-17 13:39:44 +01:00
Grégoire Paris
0bd839a720
Merge pull request #12345 from greg0ire/3.6.x
...
Merge 2.20.x up into 3.6.x
2026-01-16 18:27:03 +01:00
Grégoire Paris
b65004fc26
Merge remote-tracking branch 'origin/2.20.x' into 3.6.x
2026-01-16 18:24:38 +01:00
Grégoire Paris
d2418ab074
Merge pull request #12344 from greg0ire/update-baseline
...
Update PHPStan baseline
2026-01-15 23:38:15 +01:00
Grégoire Paris
39a05e31c9
Update PHPStan baseline
...
This is caused by the release of doctrine/collections 2.7.0. The error
message is a bit shorter now.
2026-01-15 20:13:05 +01:00
sasezaki
ab156a551c
Update phpstan-dbal2 to phpstan-dbal3 in .gitattributes ( #12343 )
2026-01-12 12:53:04 +01:00
Grégoire Paris
2148940290
Merge pull request #12335 from greg0ire/gh-12166
...
Avoid lazy object initialization when initializing read-only property
2026-01-09 06:28:15 +01:00
Grégoire Paris
d3538095fd
Merge pull request #12337 from greg0ire/3.6.x
...
Merge 2.20.x up into 3.6.x
2026-01-09 06:26:06 +01:00
Grégoire Paris
0c1bf14729
Merge remote-tracking branch 'origin/2.20.x' into 3.6.x
2026-01-08 08:55:21 +01:00
Grégoire Paris
3b8c23c51d
Merge pull request #12336 from greg0ire/dmwydo
...
Stop mocking EventManager
2026-01-08 07:19:16 +01:00
Grégoire Paris
60d4ea694a
Stop mocking EventManager
...
It is defined outside this repository, so let us not mock what we do not
own.
2026-01-07 21:52:47 +01:00
Grégoire Paris
e923bbc932
Avoid lazy object initialization when initializing read-only property
...
Initializing e.g. a readonly ID does not require loading any data from
the database. However, calling isInitialized() on the reflection of a
readonly property triggers the native lazy object initialization.
If we have a lazy property at hand, then the property cannot be initialized
already, so it is safe to skip the call.
2026-01-07 13:04:14 +01:00
n0099
8cbd34c666
Merge pull request #12060 from n0099/patch-1
...
Update doc `dql-custom-walkers.rst` with an output walker to interpolate parameters into SQL
2026-01-01 18:27:48 +01:00
Vladislav Sultanov
8bdefef6d1
Handle int-backed enums for values stored as string values in MySQL ENUM columns ( #12275 )
...
* FIX: Handle int-backed enums for values stored as string values in MySQL ENUM columns
Related issue: doctrine#12274
* FIX: Apply coding standard changes
Related issue: doctrine#12274
* FIX: Add unit test cases
Related issue: doctrine#12274
2025-12-30 18:21:10 +01:00
Grégoire Paris
0f8730a6e5
Merge pull request #12331 from greg0ire/a-the
...
Fix grammatical errors
2025-12-24 11:39:26 +01:00
Grégoire Paris
62477b5d42
Update branch metadata ( #12327 )
...
* Update branch metadata
3.6.0 has been released. As a consequence:
- 3.7.x is the next minor branch;
- 3.6.x is the current branch;
- 3.5.x is no longer maintained.
* doc: drop old releases
We should reduce the number of versions we have, so let's remove docs
for versions that have less than 2k downloads per day.
2025-12-21 00:29:57 +01:00
HypeMC
12116aa3c2
Fix docs regarding query hints ( #12328 )
2025-12-21 00:29:08 +01:00
Grégoire Paris
0aeddd0592
Fix grammatical errors
2025-12-20 15:34:16 +01:00
Grégoire Paris
2491c4b20d
Merge pull request #12329 from HypeMC/fix-result-cache-examples
...
Fix result cache examples in docs
2025-12-20 09:14:39 +01:00
HypeMC
08d6167243
Fix result cache examples in docs
2025-12-20 01:21:11 +01:00
Grégoire Paris
d4e9276e79
Merge pull request #12325 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-12-19 21:36:14 +01:00
Grégoire Paris
cee74faa97
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-12-19 20:59:05 +01:00
Grégoire Paris
9ae2181185
Merge pull request #12165 from HypeMC/debug-events-commands
...
Add commands for inspecting configured listeners
2025-12-19 08:31:44 +01:00
HypeMC
3e25efd72b
One table
2025-12-17 23:17:36 +01:00
HypeMC
47496ed882
Fixes
2025-12-17 18:52:17 +01:00
Sadetdin EYILI
492745d710
docs: add xml example for Single Table Inheritance mapping ( #12169 )
2025-12-17 10:40:06 +01:00
dependabot[bot]
67419cf951
Bump actions/download-artifact from 6 to 7 ( #12321 )
2025-12-15 07:56:29 +01:00
dependabot[bot]
1237f5c909
Bump actions/upload-artifact from 5 to 6 ( #12322 )
2025-12-15 07:55:38 +01:00
Grégoire Paris
609e616f2d
Merge pull request #12279 from greg0ire/deprecate-conversion
...
Deprecate string default expressions
2025-12-10 15:05:54 +01:00
Grégoire Paris
4016d6ba4b
Deprecate string default expressions
...
Right now, the ORM handles the conversion of strings that happen to be
default expressions for date, time and datetime columns into the
corresponding value objects.
Let us allow users to specify these value objects directly, and
deprecate relying on the aforementioned conversion.
2025-12-10 12:08:30 +01:00
dependabot[bot]
dcdd46251e
Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml ( #12315 )
...
Bumps [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/13.0.0...13.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml
dependency-version: 13.1.0
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>
2025-12-01 10:23:27 +01:00
dependabot[bot]
3d98b43561
Bump doctrine/.github/.github/workflows/composer-lint.yml ( #12317 )
...
Bumps [doctrine/.github/.github/workflows/composer-lint.yml](https://github.com/doctrine/.github ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/13.0.0...13.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/composer-lint.yml
dependency-version: 13.1.0
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>
2025-12-01 10:22:42 +01:00
dependabot[bot]
9f3f70944a
Bump doctrine/.github/.github/workflows/coding-standards.yml ( #12316 )
...
Bumps [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/13.0.0...13.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/coding-standards.yml
dependency-version: 13.1.0
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>
2025-12-01 10:22:15 +01:00
dependabot[bot]
05e07c0ae0
Bump doctrine/.github/.github/workflows/documentation.yml ( #12318 )
...
Bumps [doctrine/.github/.github/workflows/documentation.yml](https://github.com/doctrine/.github ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/13.0.0...13.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/documentation.yml
dependency-version: 13.1.0
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>
2025-12-01 10:21:12 +01:00
Grégoire Paris
fea42ab984
Merge pull request #12299 from alexislefebvre/chore-show-parameters-in-name-of-CI-jobs
...
chore: show parameters in name of CI jobs
2025-11-30 11:14:14 +01:00
Alexis Lefebvre
7c347b85c1
doc: do not mention InverseJoinColumn since it’s only with PHP 8.0 ( #12313 )
2025-11-30 00:49:09 +01:00
Alexander M. Turek
458b040d93
Remove obsolete PHPStan ignore rules
2025-11-30 00:34:10 +01:00
Alexander M. Turek
396636a2c2
Merge branch '3.5.x' into 3.6.x
...
* 3.5.x:
Remove obsolete VarExporter feature detection (#12309 )
Allow Symfony 8 (#12308 )
Explicitly set a cache in testDisablingXmlValidationIsPossible (#12307 )
Removes Guides from our dependencies (#12303 )
Fix PHPStan and test errors after DBAL 4.4 and Symfony 7.4 releases (#12301 )
Support Symfony Console 8 (#12300 )
Bump doctrine/.github/.github/workflows/composer-lint.yml (#12288 )
Bump doctrine/.github/.github/workflows/documentation.yml (#12289 )
Bump doctrine/.github/.github/workflows/coding-standards.yml (#12290 )
Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml (#12291 )
Bump actions/checkout from 5 to 6 (#12292 )
2025-11-30 00:29:59 +01:00
Alexander M. Turek
78dd074266
Remove obsolete VarExporter feature detection ( #12309 )
2025-11-30 00:11:02 +01:00
Alexander M. Turek
ff22a00fcf
Allow Symfony 8 ( #12308 )
2025-11-30 00:10:09 +01:00
Alexander M. Turek
02e8ff9663
Explicitly set a cache in testDisablingXmlValidationIsPossible ( #12307 )
2025-11-29 23:16:54 +01:00
Alexis Lefebvre
01fd55e9ea
chore: show parameters in name of CI jobs
2025-11-29 23:12:27 +01:00
Alexander M. Turek
2e75a7f1c1
Merge branch '2.20.x' into 3.5.x
...
* 2.20.x:
Support Symfony Console 8 (#12300 )
Bump doctrine/.github/.github/workflows/composer-lint.yml (#12288 )
Bump doctrine/.github/.github/workflows/documentation.yml (#12289 )
Bump doctrine/.github/.github/workflows/coding-standards.yml (#12290 )
Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml (#12291 )
Bump actions/checkout from 5 to 6 (#12292 )
2025-11-29 22:07:13 +01:00
Alexander M. Turek
152b0e3d65
Removes Guides from our dependencies ( #12303 )
2025-11-29 21:55:58 +01:00
Alexander M. Turek
9d11fdd3da
Fix PHPStan and test errors after DBAL 4.4 and Symfony 7.4 releases ( #12301 )
...
* Fix PHPStan errors after DBAL 4.4 and Symfony 7.4 releases
* Fix PHPStan and test errors after DBAL 4.4 and Symfony 7.4 releases
2025-11-29 18:04:54 +01:00
Alexander M. Turek
87f1ba74e0
Support Symfony Console 8 ( #12300 )
2025-11-29 15:03:56 +01:00
Grégoire Paris
f357a33d23
Merge pull request #12293 from doctrine/3.5.x
...
Merge 3.5.x. up into 3.6.x
2025-11-24 20:25:07 +01:00
Grégoire Paris
ee70178314
Merge pull request #12287 from greg0ire/more-order-by
...
Add ORDER BY clause to more test cases
2025-11-24 09:40:48 +01:00
dependabot[bot]
ab148d3d9d
Bump doctrine/.github/.github/workflows/composer-lint.yml ( #12288 )
...
Bumps [doctrine/.github/.github/workflows/composer-lint.yml](https://github.com/doctrine/.github ) from 12.2.0 to 13.0.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/v12.2.0...13.0.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/composer-lint.yml
dependency-version: 13.0.0
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>
2025-11-24 09:25:08 +01:00
dependabot[bot]
3924c38fab
Bump doctrine/.github/.github/workflows/documentation.yml ( #12289 )
...
Bumps [doctrine/.github/.github/workflows/documentation.yml](https://github.com/doctrine/.github ) from 12.2.0 to 13.0.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/v12.2.0...13.0.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/documentation.yml
dependency-version: 13.0.0
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>
2025-11-24 09:24:42 +01:00
dependabot[bot]
9814078a2c
Bump doctrine/.github/.github/workflows/coding-standards.yml ( #12290 )
...
Bumps [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github ) from 12.2.0 to 13.0.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/v12.2.0...13.0.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/coding-standards.yml
dependency-version: 13.0.0
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>
2025-11-24 09:24:14 +01:00
dependabot[bot]
6de5684fd9
Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml ( #12291 )
...
Bumps [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github ) from 12.2.0 to 13.0.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/v12.2.0...13.0.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml
dependency-version: 13.0.0
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>
2025-11-24 09:23:46 +01:00
dependabot[bot]
c142503a52
Bump actions/checkout from 5 to 6 ( #12292 )
2025-11-24 07:27:27 +01:00
Grégoire Paris
01c178b297
Add ORDER BY clause to more test cases
...
In https://github.com/doctrine/orm/pull/12222 , I thought wrongly thought
the issue I was fixing only affected one test.
2025-11-23 19:18:20 +01:00
Grégoire Paris
ffa50a777f
Merge pull request #12286 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-11-21 20:24:51 +01:00
Grégoire Paris
649048f745
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-11-21 19:46:45 +01:00
Grégoire Paris
15537bc218
Merge pull request #12285 from HypeMC/fix-is-foreign-key-composite
...
Fix check for composite foreign key
2025-11-21 19:29:05 +01:00
HypeMC
bc95c7c08d
Fix check for composite foreign key
2025-11-21 07:27:53 +01:00
Grégoire Paris
6982c8ab9d
Merge pull request #12284 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-11-20 22:49:20 +01:00
Grégoire Paris
3df11d518c
Merge pull request #12283 from doctrine/2.20.x
...
Merge 2.20.x up into 3.5.x
2025-11-20 21:31:19 +01:00
Grégoire Paris
c1becd54e6
Merge pull request #12281 from greg0ire/document-default-expressions
...
Fix documentation about default values
2025-11-20 17:58:48 +01:00
Grégoire Paris
e4d7df29c2
Fix documentation about default values
...
Saying it is not possible to get Doctrine to use the `DEFAULT` SQL
keyword is wrong.
2025-11-19 23:17:53 +01:00
Grégoire Paris
608705427e
Merge pull request #12277 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-11-19 07:13:23 +01:00
Grégoire Paris
f0562f4120
Merge pull request #12273 from greg0ire/deprecate-default
...
Deprecate FieldMapping::$default
2025-11-19 06:50:43 +01:00
Grégoire Paris
9f19310f27
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-11-19 00:01:30 +01:00
Adrian Brajkovic
e38278bfca
Fix eager fetch composite foreign key ( #11397 )
...
I think #11289 did not completely fix problem for eager fetch.
Change in that PR checked if primary key of target class is composite but that does not matter when loading collection by foreign key.
It should check if foreign key on target class is composite.
Fix from that PR did not work for me because i had entity with regular autogenerated id (single column), but foreign key referenced entity with composite primary key, like SecondLevelWithoutCompositePrimaryKey in this PR.
Checking if foreign key is composite fixed the problem for me.
2025-11-18 21:40:50 +01:00
Grégoire Paris
62f2cff218
Merge pull request #12268 from pmaasz/querybuilder-hints
...
Add hints to QueryBuilder
2025-11-15 09:32:24 +01:00
pmaasz
cdd774906b
add member variable hints to the querybuilder for hints to be added to the query
...
This adds the membervariable hints to the QueryBuilder to enable setting hints
that will be applied to the query when it is created. This can help trigger
custom walker classes when the query is not adressable driectly e.g. in
Symfony Form Extensions where the quer_builder normalizer is handed the querybuilder
directly. Also see #11849
The feature mirrors the hint feature from the Query class.
This also adds tests for the hints in the QueryBuilder to ensure that those are added
correctly and applied to the query itself on creation
2025-11-14 09:11:48 +01:00
Grégoire Paris
96776e091d
Deprecate FieldMapping::$default
...
Its purpose is unclear since there is FieldMapping::$options['default']
already.
2025-11-14 08:46:08 +01:00
Grégoire Paris
f7470d8a3f
Merge pull request #12271 from greg0ire/3.6.x
...
Merge 3.5.x up into 3.6.x
2025-11-11 19:31:00 +01:00
Grégoire Paris
2c41cc7f1c
Merge remote-tracking branch 'origin/3.5.x' into 3.6.x
2025-11-11 19:28:47 +01:00
Grégoire Paris
f18de9d569
Merge pull request #12269 from greg0ire/3.5.x
...
Undo merge from 3.6.x into 3.5.x
2025-11-11 19:27:40 +01:00
Grégoire Paris
37f76a8381
Undo merge from 3.6.x into 3.5.x
2025-11-11 19:11:32 +01:00
Grégoire Paris
a6c1e63a60
Merge pull request #12266 from doctrine/3.5.x-merge-up-into-3.6.x_hSSiOXm0
...
Merge release 3.5.6 into 3.6.x
2025-11-10 22:27:19 +01:00
Grégoire Paris
b62292256a
Merge pull request #12265 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-11-10 22:11:37 +01:00
Grégoire Paris
b138395194
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-11-10 21:32:47 +01:00
Grégoire Paris
6881cdff4c
Merge pull request #12264 from doctrine/3.5.x-merge-up-into-3.6.x_9GolPzTd
...
Merge release 3.5.5 into 3.6.x
2025-11-10 21:27:36 +01:00
Grégoire Paris
dede2d775a
Merge pull request #12262 from greg0ire/address-dbal-depr
...
Address default expression deprecation
2025-11-10 19:49:31 +01:00
Grégoire Paris
c502190712
Address default expression deprecation
...
This addresses the deprecation introduced in
https://github.com/doctrine/dbal/pull/7195
A follow-up should be to deprecate not using these value objects in
field mappings, so that we do not just reproduce the same checks that
the DBAL wants to remove.
2025-11-10 19:13:28 +01:00
Grégoire Paris
5bff0919a7
Merge pull request #12254 from elliotbruneel/fix/empty-array-query
...
fix: handling of empty array in SQL condition generation
2025-11-10 14:35:45 +01:00
Elliot Bruneel
9ef0f5301b
fix: update SQL condition for empty array to 1=0 instead of IN (NULL)
2025-11-10 10:44:48 +01:00
Elliot Bruneel
4989ca6f15
test: add test for finding by nullable field with empty array
2025-11-05 10:03:09 +01:00
Elliot Bruneel
32d1e97ce7
chore: improve empty array check in SQL condition generation
2025-11-05 09:51:33 +01:00
Grégoire Paris
ca8147b148
Merge pull request #12257 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-12.2.0
...
Bump doctrine/.github from 12.1.0 to 12.2.0
2025-11-03 09:32:58 +01:00
dependabot[bot]
c8ebea77f0
Bump doctrine/.github from 12.1.0 to 12.2.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 12.1.0 to 12.2.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/12.1.0...v12.2.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-version: 12.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-03 06:11:36 +00:00
Elliot Bruneel
23f22860f1
chore: update phpstan version and regenerate baseline
2025-10-31 09:04:03 +01:00
Elliot Bruneel
b24586b1b5
fix: handling of empty array in SQL condition generation
2025-10-30 17:31:04 +01:00
Grégoire Paris
9e5442a892
Merge pull request #12251 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-10-29 20:41:29 +01:00
Grégoire Paris
7d8e51c934
Merge pull request #12250 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-10-29 08:33:35 +01:00
Grégoire Paris
2f8f1cfcb8
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-10-29 07:31:41 +01:00
Grégoire Paris
fe5ee705db
Merge pull request #12247 from greg0ire/composer-lint
...
Setup composer lint workflow
2025-10-29 07:28:39 +01:00
Grégoire Paris
01774c035c
Merge pull request #12065 from whataboutpereira/fix-enum-discriminator-column
...
Use enum values from enumType in DiscriminatorColumn and check DiscriminatorMap values against it
2025-10-29 07:28:16 +01:00
Grégoire Paris
0511a9f790
Merge pull request #12248 from greg0ire/remove-mailing-list
...
Drop link to mailing list
2025-10-28 22:06:18 +01:00
Grégoire Paris
0e3d5e8c82
Drop link to mailing list
...
Who still uses this? Not me, that's for sure!
2025-10-28 21:20:15 +01:00
Grégoire Paris
72ffb3bfbf
Remove archive exclude list
...
It is not up-to-date, and we use .gitattributes for this purpose.
2025-10-28 21:04:43 +01:00
Grégoire Paris
2e9a1adc23
Setup composer lint workflow
2025-10-28 21:03:24 +01:00
Reio Remma
6f83166266
Extract enum cases from enumType in DiscriminatorColumn
...
Check DiscriminatorMap keys match enum cases.
Test values are populated from enum cases and mismatched values throw an exception.
Fixes #11794
2025-10-28 20:36:11 +02:00
Grégoire Paris
ffd3f50ad7
Merge pull request #12244 from greg0ire/3.6.x
...
Merge 3.5.x up into 3.6.x
2025-10-27 23:46:31 +01:00
Grégoire Paris
483b45d449
Merge remote-tracking branch 'origin/3.5.x' into 3.6.x
2025-10-27 23:20:06 +01:00
Grégoire Paris
1220edf953
Merge pull request #12241 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-10-27 23:06:52 +01:00
Grégoire Paris
7e4693d629
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-10-27 22:34:13 +01:00
Grégoire Paris
59938cae57
Merge pull request #12238 from mpdude/fix-collections-deprecation
...
Avoid triggering a deprecation notice in doctrine/collections
2025-10-27 22:19:59 +01:00
Grégoire Paris
298dc9bb6a
Merge pull request #12183 from mpdude/paginator-confused-result-set-mapping-initialized
...
Paginator with output walker returns count 0 when the query has previously been executed
2025-10-27 21:54:38 +01:00
Matthias Pigulla
da67f323e0
Add PHPStan errors to persistence2 baseline file
2025-10-27 19:51:11 +01:00
Matthias Pigulla
63635cad0e
Remove PHPStan error suppressions
2025-10-27 12:28:48 +01:00
Grégoire Paris
a0d401b688
Merge pull request #12239 from doctrine/dependabot/github_actions/2.20.x/actions/download-artifact-6
...
Bump actions/download-artifact from 5 to 6
2025-10-27 08:38:07 +01:00
Grégoire Paris
6acbadfbbe
Merge pull request #12240 from doctrine/dependabot/github_actions/2.20.x/actions/upload-artifact-5
...
Bump actions/upload-artifact from 4 to 5
2025-10-27 08:37:52 +01:00
dependabot[bot]
c64dcb4d38
Bump actions/upload-artifact from 4 to 5
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-27 06:41:11 +00:00
dependabot[bot]
3304290b21
Bump actions/download-artifact from 5 to 6
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-27 06:22:30 +00:00
Matthias Pigulla
1865717721
Avoid triggering a deprecation notice in doctrine/collections
...
This updates the code to avoid triggering the deprecation introduced in https://github.com/doctrine/collections/pull/472 .
2025-10-26 23:20:27 +01:00
Matthias Pigulla
828b06e20f
Update the DQL walker cookbook example
2025-10-26 22:13:51 +01:00
Matthias Pigulla
c2b844d2e3
Update src/Tools/Pagination/Paginator.php
...
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2025-10-26 22:08:56 +01:00
Christophe Coevoet
dd4e8fe78f
Merge pull request #12198 from stof/arbitrary_join_on
...
Update DQL arbitrary joins to use the ON keyword instead of WITH
2025-10-25 10:59:22 +02:00
Grégoire Paris
4f36f0129a
Merge pull request #12236 from eltharin/bugfix_fieldalias_entityInDto
...
bugfix - add fieldAlias for entities in dto
2025-10-23 08:51:42 +02:00
dependabot[bot]
b45d5329f8
Bump doctrine/.github from 10.1.0 to 12.0.0 ( #12227 )
2025-10-23 08:10:27 +02:00
Grégoire Paris
c1047b30e3
Merge pull request #12216 from paulinevos/docs-builder
...
Use docs builder in ORM repo
2025-10-23 07:48:31 +02:00
eltharin
f71aa73ef1
bugfix - add fieldAlias for entities in dto
2025-10-22 21:14:42 +02:00
Grégoire Paris
aa62efa30a
Adapt to latest coding standard
2025-10-22 21:12:17 +02:00
Pauline Vos
f71956f001
Use docs-builder to generate ORM docs
...
Introduces the `composer docs` command to generate the docs locally, and
uses the same tool (`docs-builder`) in the documentation GH workflow.
2025-10-22 21:09:03 +02:00
Alexander M. Turek
7cc210424c
SQLFilter: replace internal array shape with class ( #12232 )
2025-10-22 09:20:35 +02:00
Grégoire Paris
4fd9e94819
Merge pull request #12234 from mpdude/merge-3.5.x-into-3.6.x
...
Merge 3.5.x up into 3.6.x
2025-10-22 08:31:52 +02:00
Christophe Coevoet
587caf88a7
Update DQL arbitrary joins to use the ON keyword instead of WITH
...
DQL arbitrary joins are semantically equivalent to SQL joins, so using
the same keyword reduces confusion. It also means that in next major
version, the WITH keyword will only be about applying adhoc filtering on
relations instead of having 2 responsibilities.
2025-10-21 17:42:48 +02:00
Matthias Pigulla
1e33b775d3
Merge remote-tracking branch 'upstream/3.5.x' into HEAD
2025-10-21 17:30:48 +02:00
Ali Sol
96f9b29573
Merge pull request #12233 from alisolphp/fix-docs-typos-2-20
...
Docs: fix typos and grammar across reference docs
2025-10-21 17:09:12 +02:00
Grégoire Paris
c6207b1793
Merge pull request #12202 from greg0ire/missing-suffix
...
Add missing "Test" suffix
2025-10-20 08:01:47 +02:00
Grégoire Paris
8c92903430
Specify the length of VARCHAR columns
...
Platforms in the MySQL/MariaDB family require that.
2025-10-18 14:26:12 +02:00
Grégoire Paris
8616a98023
Add missing "Test" suffix
...
That test never got executed.
2025-10-18 14:16:07 +02:00
Grégoire Paris
9a55cf4f30
Merge pull request #12190 from mpdude/criteria-matching-custom-type-retry
...
Fix collection filtering API for `IN`/`NOT IN` comparisons that require type conversions
2025-10-16 07:56:07 +02:00
Matthias Pigulla
9d680a6de4
Do not eagerly set metadata from ResolveTargetEntityListener ( #12174 )
...
* Do not eagerly set metadata from ResolveTargetEntityListener
When using the `ResolveTargetEntityListener` to substitute `targetEntities` in association mappings, do not eagerly put the resolved (target) entity into the class metadata cache under the class name of the original entity.
#### Motivation
I have a library that wants to distribute a MappedSuperclass as the base for some functionality. It will be necessary that clients using the library will extend the MappedSuperclass to fill in some blanks, creating the first real `#[Entity]` instance of it.
This client-provided entity will be the primary means of working with the class. Thus, I was following the [note in the documentation](https://www.doctrine-project.org/projects/doctrine-orm/en/3.5/reference/inheritance-mapping.html#mapped-superclasses:~:text=It%20is%2C%20however ) and using the `ResolveTargetEntityListener` to declare that whenever an association refers to that mapped superclass, the particular entity class shall be used instead.
> One-To-Many associations are not generally possible on a mapped superclass, since they require the "many" side to hold the foreign key.
> It is, however, possible to use the [ResolveTargetEntityListener](https://www.doctrine-project.org/projects/doctrine-orm/en/3.5/cookbook/resolve-target-entity-listener.html ) to replace references to a mapped superclass with an entity class at runtime. As long as there is only one entity subclass inheriting from the mapped superclass and all references to the mapped superclass are resolved to that entity class at runtime, the mapped superclass can use One-To-Many associations and be named as the targetEntity on the owning sides.
#### Changes made
The `ResolveTargetEntityListener` primarily does what its name suggests: For newly loaded class metadata, it inspects all associations declared and replaces the `targetEntity` with new (resolved) values.
But additionally, when a loaded class is the target of such a resolution, it would also put the class metadata into the cache under the name of the original entity.
I think that extra step is wrong, and this PR removes it. It had the side effect that when other classes extending the MappedSuperclass were loaded _after_ the resolve target class has been seen for the first time, the metadata for those classes would not inherit from the mapped superclass anymore, but from the target entity class instead. In my real-life use case, this causes weird mapping errors down the road; as of ^3.0, it would throw a mapping exception asking to configure inheritance mapping. But note that there would be no inheritance between the two entity classes at all.
#### More background
The documentation [describes the use of `ResolveTargetEntityListener`](https://www.doctrine-project.org/projects/doctrine-orm/en/3.5/cookbook/resolve-target-entity-listener.html ) with an interface that is resolved to an entity class. For an interface, adding the extra metadata does not make a difference, since it never interferes with actual entity or mapped superclasses.
The initial idea of adding a copy of the entity class metadata under the interface name came from commit
9c7f3f2747 in #385 . The goal was to make it possible to also find entities by interface names, like so:
```
$em->find('Foo\BarBundle\Entity\PersonInterface', 1);
```
It then [turned out that this only worked when the resolution had already been applied](https://github.com/doctrine/orm/pull/385#issuecomment-6658893 ). So, the new `onClassMetadataNotFound` event was added and the resolution map would be checked in that case as well (#1181 ). The inital code stayed in place, possibly giving a small performance gain.
In my real-world use case and the test case I added in this PR, the associations are even self-referencing. That should not really be necessary for the problem to surface. I decided to keep it this way to show that the `targetEntity` need not be an interface after all, and that a MappedSuperclass can be used in the same way.
2025-10-15 16:10:51 +02:00
Grégoire Paris
7602a5341c
Merge pull request #12224 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-10-13 23:12:23 +02:00
Matthias Pigulla
7a59281157
Fix collection filtering API for IN/NOT IN comparisons that require type conversions
...
This PR fixes the `Criteria` matching API for `IN` and `NIN` conditions with values that are arrays, by making sure that type information for the matched field is passed to the DBAL level correctly.
Passing the right parameter type to DBAL is important to make sure parameter conversions are applied before matching at the database level.
Memory-based collections (`ArrayCollection`s or initialized collection fields) would perform matching on the objects in memory where no type conversion to the database representation is required, giving correct results.
But uninitialized collections that have their conditions evaluated at the database level need to convert parameter values to the database representation before performing the comparison.
One extra challenge is that the DBAL type system does currently not support array-valued parameters for custom types. Only a [limited list of types](https://www.doctrine-project.org/projects/doctrine-dbal/en/4.2/reference/data-retrieval-and-manipulation.html#list-of-parameters-conversion ) is supported.
I discussed this with @morozov at the Doctrine Hackathon and came to the conclusion that it would be best to work around this limitation at the ORM level. Thus, this fix recognizes array-valued parameters and creates multiple placeholders (like `?, ?, ?`) for them, flattening out the arrays in the parameter list and repeating the type information for each one of them.
Previous stalled attempt to fix this was in #11897 .
2025-10-13 23:11:56 +02:00
Grégoire Paris
214b1ad739
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-10-13 22:53:09 +02:00
Grégoire Paris
5def068fe9
Merge pull request #12223 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-10.1.0
...
Bump doctrine/.github from 8.0.0 to 10.1.0
2025-10-13 08:49:34 +02:00
dependabot[bot]
693acbf812
Bump doctrine/.github from 8.0.0 to 10.1.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 8.0.0 to 10.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/8.0.0...10.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-version: 10.1.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-13 06:11:35 +00:00
Grégoire Paris
28d9472a38
Merge pull request #12196 from mpdude/deprecation-notice-parser-result
...
Add deprecation messages for methods that were only annotated as being `@deprecated`
2025-10-12 08:32:18 +02:00
Grégoire Paris
cf11f1e453
Add ORDER BY clause to SELECT query ( #12222 )
...
The order of results is not guaranteed unless we do so, and the test can
fail in some cases:
There was 1 failure:
1) Doctrine\Tests\ORM\Functional\QueryTest::testToIterableWithMixedResultArbitraryJoinsScalars
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Doctrine 2'
+'lala 2'
/home/runner/work/orm/orm/tests/Tests/ORM/Functional/QueryTest.php:481
2025-10-12 02:02:42 +02:00
Grégoire Paris
c6955ec056
Merge pull request #12221 from greg0ire/3.6.x
...
Merge 3.5.x up into 3.6.x
2025-10-12 01:54:15 +02:00
Grégoire Paris
c1ce2bb687
Merge pull request #12220 from mbeccati/fix-mysql9-library
...
Escape library as a table name in tests (#12170 )
2025-10-11 17:08:47 +02:00
Grégoire Paris
6863272943
Merge remote-tracking branch 'origin/3.5.x' into 3.6.x
2025-10-11 17:07:11 +02:00
Grégoire Paris
eae6577ce2
Merge pull request #12219 from greg0ire/rework-upgrade-md
...
Move introduction outside of paragraph about 3.x
2025-10-11 17:05:17 +02:00
Matteo Beccati
5f6896a2f9
Avoid using LIBRARY as table name ( #12170 )
...
It is a reserved word since MySQL 9.2:
https://dev.mysql.com/doc/refman/9.2/en/create-library.html
2025-10-11 11:56:29 +02:00
Grégoire Paris
e3106d439d
Move introduction outside of paragraph about 3.x
...
It is not specific to 3.x and should stay forever.
2025-10-11 09:41:24 +02:00
Grégoire Paris
930a790a5a
Merge pull request #12212 from mpdude/revert-11769
...
Revert "Fix fields of transient classes being considered duplicate with `reportFieldsWhereDeclared` (#11769 )"
2025-10-10 08:17:09 +02:00
Alexander M. Turek
40aa44914f
Ignore DBAL deprecation that we cannot fix (yet) ( #12218 )
2025-10-09 23:48:42 +02:00
Grégoire Paris
7c8a528914
Merge pull request #12211 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-10-09 22:07:50 +02:00
Christian Flothmann
3b7de17f2e
add jobs using PHP 8.5 in the CI ( #12180 )
2025-10-09 16:39:28 +02:00
Grégoire Paris
40fedadecf
Merge pull request #12217 from derrabus/bugfix/deprecated-get-name
...
Fix DBAL deprecation
2025-10-09 15:42:59 +02:00
Alexander M. Turek
0d97a44f28
Fix DBAL deprecation
2025-10-09 15:24:06 +02:00
Alexander M. Turek
c472a1535d
Stop using deprecated Collections constants ( #12214 )
2025-10-09 15:02:50 +02:00
Matthias Pigulla
8afaa63d73
Add a recommendation not to use multiple private fields of the same name in entity hierarchies
2025-10-09 11:11:51 +02:00
Matthias Pigulla
2ad720b304
Revert "Fix fields of transient classes being considered duplicate with reportFieldsWhereDeclared ( #11769 )"
...
This reverts commit 4feaa470af .
2025-10-09 10:23:55 +02:00
Grégoire Paris
64cd5cad20
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-10-09 08:05:48 +02:00
Matthias Pigulla
f1a8ee175c
Add deprecation messages for two methods that were only annotated as being @deprecated
2025-10-08 23:09:14 +02:00
Alexander M. Turek
d3e1440175
Handle quoted PK columns properly on DBAL 4 ( #12208 )
2025-10-08 18:25:12 +02:00
Benjamin Eberlei
a9bd00a70b
Improve migration docs from ORM 2 to 3. ( #12207 )
...
* Improve migration docs from ORM 2 to 3.
* Improve wording
* Hint about following deprecations.
2025-10-08 16:37:16 +02:00
Benjamin Eberlei
a939dc2e0d
[GH-9219] Add support for toIterable over mixed or scalar results. ( #12187 )
...
* [GH-9219] Add support for toIterable over mixed or scalar results.
* Housekeeping: phpcs
* Update test names
2025-10-08 15:07:52 +02:00
Christophe Coevoet
f8186b1203
Merge pull request #12200 from mpdude/fix-invalid-dql-test-case
...
Fix DQL JOIN syntax in two test cases
2025-10-08 11:08:24 +02:00
Alexander M. Turek
28dd32790f
Merge branch '3.5.x' into 3.6.x
...
* 3.5.x:
Fix missing import
Remove calls to getMockForAbstractClass() (#12003 )
Upgrade to doctrine/coding-standard 14
Bump doctrine/.github from 7.3.0 to 8.0.0
2025-10-08 10:32:06 +02:00
Alexander M. Turek
4f3a5c5514
Merge pull request #12201 from derrabus/bugfix/missing-import
2025-10-07 22:57:47 +02:00
Alexander M. Turek
6641989e35
Fix missing import
2025-10-07 18:02:20 +02:00
Matthias Pigulla
048e308241
Fix DQL JOIN syntax in two test cases
2025-10-07 17:54:33 +02:00
Alexander M. Turek
8ca72a4e96
Merge branch '2.20.x' into 3.5.x
...
* 2.20.x:
Remove calls to getMockForAbstractClass() (#12003 )
2025-10-07 17:25:14 +02:00
Alexander M. Turek
daf74b74b5
Merge commit 'c1af765960bf88cb5109f74a05d24c4df9aaf76a' into 3.5.x
...
* commit 'c1af765960bf88cb5109f74a05d24c4df9aaf76a':
Upgrade to doctrine/coding-standard 14
Bump doctrine/.github from 7.3.0 to 8.0.0
2025-10-07 16:49:06 +02:00
Alexander M. Turek
4274dac8a2
Remove calls to getMockForAbstractClass() ( #12003 )
2025-10-07 16:34:22 +02:00
Alexander M. Turek
ac19b21a71
Merge branch '3.5.x' into 3.6.x
...
* 3.5.x:
Add a CI job that fails on deprecations (#12188 )
use the empty string instead of null as an array offset (#12181 )
do not call setAccessible() on PHP >= 8.1 (#12182 )
Fix docs on final entities (#12176 )
Remove Database and Model First chapters that said little of value.
Switch to IgnoreDeprecations
docs: consistent PostgreSQL's name case
docs: generation strategies differences between DBAL 3 and 4
Check extra condition to decide if a test was skipped
Use PHPUnit 11 when possible
Migrate away from annotations in tests
Migrate away from assertStringNotMatchesFormat()
Migrate to willReturn()
Migrate away from getMockForAbstractClass()
Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
2025-10-07 16:07:07 +02:00
Alexander M. Turek
c6db9feade
Add a CI job that fails on deprecations ( #12188 )
2025-10-07 16:03:42 +02:00
Grégoire Paris
c1af765960
Merge pull request #12185 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-8.0.0
...
Bump doctrine/.github from 7.3.0 to 8.0.0
2025-10-07 15:40:44 +02:00
Alexander M. Turek
86d847edb8
Merge branch '2.20.x' into 3.5.x
...
* 2.20.x:
use the empty string instead of null as an array offset (#12181 )
do not call setAccessible() on PHP >= 8.1 (#12182 )
2025-10-07 15:23:19 +02:00
Christian Flothmann
5f3551852f
use the empty string instead of null as an array offset ( #12181 )
2025-10-07 14:50:23 +02:00
Grégoire Paris
8144cad07c
Upgrade to doctrine/coding-standard 14
2025-10-06 09:01:36 +02:00
dependabot[bot]
70fd68cf7f
Bump doctrine/.github from 7.3.0 to 8.0.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 7.3.0 to 8.0.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/7.3.0...8.0.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-version: 8.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-06 06:14:08 +00:00
Matthias Pigulla
437259556c
Fix CS
2025-10-01 19:48:04 +02:00
Matthias Pigulla
e7e2fef56c
Fix creation of the count query, to that a new RSM is being created
2025-10-01 19:46:58 +02:00
Matthias Pigulla
3e34b8e86a
Add a test to reproduce the issue
2025-10-01 19:35:18 +02:00
Christian Flothmann
7d950aba62
do not call setAccessible() on PHP >= 8.1 ( #12182 )
2025-10-01 16:17:00 +02:00
Massimiliano Arione
8ad560c34d
Fix docs on final entities ( #12176 )
2025-09-26 00:28:08 +02:00
Grégoire Paris
ccfb620f31
Merge pull request #12175 from beberlei/Docs-RemoveDatabaseFirstChapter
...
Remove Database and Model First chapters that said little of value.
2025-09-21 22:00:51 +02:00
Benjamin Eberlei
94c4d48ae5
Remove Database and Model First chapters that said little of value.
2025-09-21 21:06:16 +02:00
HypeMC
cb8a76ba3a
Add commands for inspecting configured listeners
2025-09-15 15:03:52 +02:00
Grégoire Paris
2ca63df90c
Merge pull request #12161 from greg0ire/proper-attribute
...
Switch to IgnoreDeprecations
2025-09-12 08:23:02 +02:00
Grégoire Paris
0d4413c248
Switch to IgnoreDeprecations
...
Rather than disabling the error handler, this attribute available since
PHPUnit 10.5 allows to be more fine-grained and ignore only the deprecations.
2025-09-10 23:58:13 +02:00
Alexander Dmitryuk
a7a14cffaf
Fix php doc for getPropertyAccessors method ( #12159 )
...
Co-authored-by: a.dmitryuk <a.dmitryuk@movavi.com >
2025-09-10 02:04:32 +02:00
Grégoire Paris
48434f4c53
Merge pull request #12150 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-08-28 07:45:06 +02:00
Grégoire Paris
200a505f36
Merge pull request #12148 from lucasmirloup/docs/generation-strategies-dbal-4
...
docs: generation strategies: differences between DBAL 3 and 4
2025-08-27 07:42:53 +02:00
Grégoire Paris
17d7814fdc
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-08-27 00:02:52 +02:00
Grégoire Paris
8fe1200edf
Merge pull request #11895 from mpdude/fix-many-to-many-in-expression
...
Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
2025-08-26 15:32:52 +02:00
Lucas Mirloup
f7d4e379bc
docs: consistent PostgreSQL's name case
2025-08-26 11:37:07 +02:00
Lucas Mirloup
c164ae434f
docs: generation strategies differences between DBAL 3 and 4
2025-08-26 11:03:48 +02:00
Grégoire Paris
ceb04bf3f6
Merge pull request #12131 from rela589n/3.6.x-class-locator-doctrine-persistence-4.1
...
Feature: add support for `ClassLocator`
2025-08-25 23:10:55 +02:00
Grégoire Paris
21e9fcbfbb
Merge pull request #12146 from greg0ire/upg-phpunit
...
PHPUnit 11
2025-08-24 08:30:10 +02:00
Yevhen Sidelnyk
ed9ba16ff4
Feature: add support for ClassLocator
...
In the scope of https://github.com/doctrine/persistence/pull/433
(available from `doctrine/persistence` >= 4.1) there was added
`ColocatedMappingDriver::$classLocator` (`ClassLocator`) property,
which allows passing any instance of `ClassLocator` for the mapping
driver to use. This commit integrates those changes into `AttributeDriver`.
Since `doctrine/orm` maintains the support for `doctrine/persistence`
of older versions, tests ensure that `ClassLocator` actually exists.
The old paths' behaviour can be adapted into the new by passing
`FileClassLocator` into `AttributeDriver`
(see `FileClassLocator::createFromDirectories($directoryPaths)`).
2025-08-23 14:26:54 +03:00
Gregoire PARIS
db456976ed
Check extra condition to decide if a test was skipped
...
It seems that this could happen with PHPUnit 10, then tearDown() would
crash when calling `clear()` on null, but then PHPUnit 10 did not show
that exception.
2025-08-21 13:40:44 +02:00
Grégoire Paris
2d9091778f
Use PHPUnit 11 when possible
2025-08-21 13:39:49 +02:00
Grégoire Paris
17059e5265
Migrate away from annotations in tests
2025-08-21 13:39:49 +02:00
Grégoire Paris
680a9ef632
Migrate away from assertStringNotMatchesFormat()
...
It has been deprecated.
2025-08-21 13:39:48 +02:00
Grégoire Paris
9d5f112c7e
Migrate to willReturn()
...
self::returnValue() and self::onConsecutiveCalls() has been deprecated.
2025-08-21 13:39:48 +02:00
Grégoire Paris
b7423c96cf
Migrate away from getMockForAbstractClass()
...
It has been deprecated.
2025-08-21 13:39:46 +02:00
Grégoire Paris
fc1bf3b815
Merge pull request #12144 from greg0ire/3.6.x
...
Merge 3.5.x up into 3.6.x
2025-08-19 22:16:20 +02:00
Grégoire Paris
b6b342cada
Merge remote-tracking branch 'origin/3.5.x' into 3.6.x
2025-08-19 21:57:35 +02:00
Grégoire Paris
28735afae3
Merge pull request #12143 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-08-19 21:56:34 +02:00
Grégoire Paris
0f229fbb4b
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-08-19 21:44:21 +02:00
Alexander M. Turek
bea4814d55
Merge branch '3.5.x' into 3.6.x
...
* 3.5.x:
Prefer non-deprecated AbstractAsset API (#12142 )
2025-08-19 16:46:37 +02:00
Alexander M. Turek
85c13edc80
Prefer non-deprecated AbstractAsset API ( #12142 )
...
Co-authored-by: Christian Flothmann <christian.flothmann@open.de >
2025-08-19 16:46:03 +02:00
Grégoire Paris
397358c308
Merge pull request #12133 from greg0ire/update-phpstan
...
PHPStan 2.1.22
2025-08-19 07:36:10 +02:00
Grégoire Paris
ac37a87a3d
Merge pull request #12139 from doctrine/dependabot/github_actions/2.20.x/actions/checkout-5
...
Bump actions/checkout from 4 to 5
2025-08-18 17:31:47 +02:00
Christian Flothmann
238c15952c
fix pull request URL ( #12138 )
2025-08-18 11:52:40 +02:00
dependabot[bot]
613f52db5a
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-18 09:50:01 +00:00
Grégoire Paris
cf5503b0d8
PHPCS 3.13.2 ( #12134 )
2025-08-17 21:53:23 +02:00
Grégoire Paris
fdc88ba236
Merge pull request #12135 from greg0ire/missing-assertion
...
Add missing assertion in test
2025-08-17 21:06:21 +02:00
Grégoire Paris
c49bf58682
Add missing assertion in test
...
I forgot to copy it from another test.
2025-08-17 20:51:37 +02:00
Grégoire Paris
ae5e9c8c6c
PHPStan 2.1.22
2025-08-17 19:24:33 +02:00
Grégoire Paris
ce844d94a0
Merge pull request #12126 from greg0ire/depr-nullable-prim-keys
...
Deprecate specifying nullable on primary key columns
2025-08-17 11:46:24 +02:00
Grégoire Paris
1a2826d147
Merge pull request #12053 from alexislefebvre/chore-remove-run-all.sh
...
chore: remove run-all.sh
2025-08-11 14:14:20 +02:00
Grégoire Paris
05760f9454
Merge pull request #12127 from doctrine/dependabot/github_actions/2.20.x/actions/download-artifact-5
...
Bump actions/download-artifact from 4 to 5
2025-08-11 13:06:03 +02:00
dependabot[bot]
26af013842
Bump actions/download-artifact from 4 to 5
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-11 10:22:17 +00:00
Max
c1f7a60c5b
perf: Optimizing ScalarColumnHydrator::hydrateAllData ( #12095 )
2025-08-11 12:21:15 +02:00
Grégoire Paris
d1d13d5956
Deprecate specifying nullable on primary key columns
...
It produces no effect.
2025-08-08 22:23:32 +02:00
Grégoire Paris
4f8dde2d1e
Add missing heading
2025-08-08 21:23:08 +02:00
Grégoire Paris
e3c320c705
Merge pull request #12124 from doctrine/3.5.x-merge-up-into-3.6.x_N9Rr16zf
...
Merge release 3.5.2 into 3.6.x
2025-08-08 19:46:47 +02:00
Grégoire Paris
5a541b8b3a
Merge pull request #12121 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-08-08 19:00:40 +02:00
Grégoire Paris
9fb9cc46e4
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-08-08 09:03:30 +02:00
Grégoire Paris
c322c71cd4
Merge pull request #12120 from greg0ire/fix-broken-comments
...
Fix broken comments
2025-08-08 08:55:44 +02:00
Grégoire Paris
3c733a2fee
Add missing phpdoc
2025-08-08 08:34:07 +02:00
Grégoire Paris
5984ad586a
Fix broken phpdoc comments
2025-08-08 08:33:39 +02:00
Grégoire Paris
ee2c3a506b
Merge pull request #12097 from mvorisek/add_fixed_id_insert_count_query_test
...
Add 2nd level cache test for insert without post-inserted ID
2025-08-08 08:26:23 +02:00
Grégoire Paris
781ed30926
Merge pull request #12108 from greg0ire/address-deprecations
...
Address deprecations
2025-08-08 08:25:29 +02:00
Grégoire Paris
04694a9f7b
Merge pull request #11835 from gseidel/fix-pre-persist-call-persist
...
fix: calling scheduleForInsert twice
2025-08-07 06:25:35 +02:00
Grégoire Paris
257c5094c4
Use not nullable columns when part of the primary key
...
Using a nullable column that references another table as part of a
primary key makes no sense, and is ignored by DBAL. Let us ignore it at
the ORM level.
2025-08-06 23:06:28 +02:00
Alexander M. Turek
831232e05e
Merge branch '3.5.x' into 3.6.x
...
* 3.5.x:
Don't partially mock the AbstractPlatform class (#12114 )
2025-08-06 18:18:01 +02:00
Alexander M. Turek
66e0e92816
Don't partially mock the AbstractPlatform class ( #12114 )
2025-08-06 18:12:23 +02:00
Alexander M. Turek
a774cedb24
Include stability in coverage file key ( #12112 )
2025-08-06 14:03:37 +02:00
Alexander M. Turek
6b8207bb11
Allow Symfony 8 ( #12110 )
2025-08-06 11:05:43 +02:00
Alexander M. Turek
3d3b5b51cd
Run tests with Symfony 8 ( #12102 )
2025-08-06 10:46:32 +02:00
Michael Voříšek
5b2060e25f
Add 2nd level cache test for insert without post-inserted ID
...
Inserts without post-inserted ID can be sent to DB grouped together
hence the extra test.
2025-08-06 08:22:48 +02:00
Grégoire Paris
760616291b
Merge pull request #12105 from doctrine/3.5.x-merge-up-into-3.6.x_OhbrLWrh
...
Merge release 3.5.1 into 3.6.x
2025-08-05 08:39:23 +02:00
Grégoire Paris
64444dcfd5
Merge pull request #12088 from greg0ire/quote-parts
...
Quote parts of the table name
2025-08-05 08:05:51 +02:00
Alexander M. Turek
8584da8fdc
Merge branch '3.5.x' into 3.6.x
...
* 3.5.x:
Move LazyGhost deprecation to ProxyFactory (#12101 )
Address deprecations from doctrine/dbal (#12098 )
2025-08-04 23:49:06 +02:00
Alexander M. Turek
eb2cd5375c
Move LazyGhost deprecation to ProxyFactory ( #12101 )
2025-08-04 23:48:11 +02:00
Grégoire Paris
de7140e105
Address deprecations from doctrine/dbal ( #12098 )
...
- Non-standard flags are deprecated.
- Index::getColumns() is deprecated.
2025-08-04 23:47:55 +02:00
Grégoire Paris
07bb0def60
Merge pull request #12100 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-08-04 18:11:51 +02:00
Grégoire Paris
39e35fc06c
Merge pull request #12099 from alexislefebvre/2.20.x-update-supported-branches-on-README
...
doc: update supported branches on README (2.20.x)
2025-08-04 16:59:49 +02:00
Alexis Lefebvre
7f061c3870
doc: update supported branches on README
2025-08-04 16:38:55 +02:00
Grégoire Paris
74495711fb
Merge pull request #11934 from mvorisek/fix_joined_subclass_persister_insert_of_multiple_entities
...
Fix JoinedSubclassPersister when multiple entities are inserted
2025-08-02 08:34:29 +02:00
Michael Voříšek
97a7cb8d2f
Unify JoinedSubclassPersister dequeue
...
Fix JoinedSubclassPersister as BasicEntityPersister was already fixed in GH-10735.
The fix can be verified by modifying UnitOfWork to execute `BasicEntityPersister::executeInserts()` for multiple entities at once for the same entity class/persister instance - https://github.com/doctrine/orm/blob/2.20.3/src/UnitOfWork.php#L1186 - then reproducible on `Doctrine\Tests\ORM\Functional\Ticket\GH10531Test::testInserts` test.
As extending/modifying UnitOfWork in tests in not easily possible, I submit this fix for v2.x without a test.
2025-08-01 15:31:18 +02:00
Grégoire Paris
85d66de9df
Improve comment
...
This comment is rendered useless by the phpdoc comment below it.
Instead, we can comment on what exactly "quoted" means.
2025-07-31 22:54:44 +02:00
Grégoire Paris
1b98be31ce
Convert test into 2 unit tests
...
That test was testing too many thing and not really making it clear what
the expected output was, given some output. Instead, let us create 2
tests, each pertaining to the class under test.
2025-07-31 22:53:35 +02:00
Grégoire Paris
61f2752a80
Quote parts of the table name
...
In aa141bf001 , I wrongly assumed that
$tableName would never contain a dot as I was not able to write a test
that caused that to happen.
The secret recipe appears to be to define a schema and to quote the
table name.
To fix it for the table name, I am calling quoteSingleIdentifier()
before doing the concatenation between schema name and table name.
To fix it for the sequence name, which seems only useful when using DBAL
3 for some reason, I reuse some of the logic of the deprecated method.
Fixes #12041
2025-07-31 21:49:43 +02:00
Grégoire Paris
f3371e1773
Merge pull request #12094 from greg0ire/simplify-test
...
Remove if statement
2025-07-31 17:12:39 +02:00
Grégoire Paris
6476894dc4
Remove if statement
...
Tests should not have conditional logic, and since a41c6d3 , the else
branch of this conditional statement is dead.
2025-07-31 09:01:52 +02:00
Grégoire Paris
8cf161d8bc
Merge pull request #12091 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-07-30 16:30:50 +02:00
Grégoire Paris
e0052390e1
Merge pull request #12087 from mvorisek/improve_basic_entity_persister
...
Improve BasicEntityPersister to be more flexible and cleaner
2025-07-30 09:44:24 +02:00
Michael Voříšek
8c6419e0e0
Prefer strict empty-array comparison over empty() call
2025-07-29 15:15:31 +02:00
Michael Voříšek
6f5ce1aca2
BasicEntityPersister: refactor $values variable into $placeholders
...
The new variable name is much more clearer.
2025-07-29 15:15:31 +02:00
Michael Voříšek
98e7a53b42
Remove BasicEntityPersister::$insertSql cache property
...
When the persister is extended to do a multi update, the caching is not
wanted. The impact is minimal as the CPU/time overhead per query is
much bigger and the prepared statement is not cached anyway.
2025-07-29 15:15:31 +02:00
Gerhard Seidel
3aaaf37dfb
fix: PrePersistEventTest typos and unnecessary comments
2025-07-29 14:40:20 +02:00
Grégoire Paris
154a4652ee
Merge pull request #12086 from mvorisek/add_cache_rw_strict_locking_test
...
Add functional strict-locking 2nd level cache test
2025-07-29 11:48:25 +02:00
Michael Voříšek
ae7489ff19
Add functional strict-locking 2nd level cache test
2025-07-28 12:14:50 +02:00
Grégoire Paris
0f32569a7a
Merge pull request #12083 from greg0ire/depr-reflFields
...
Deprecate ClassMetadata::$reflFields
2025-07-27 23:19:29 +02:00
Gregoire PARIS
d99f74c704
Deprecate ClassMetadata::$reflFields
...
It is replaced with property accessors since
https://github.com/doctrine/orm/pull/11659
2025-07-24 09:55:19 +02:00
Grégoire Paris
a2990e1a0a
Merge pull request #12071 from stlgaits/mapping-command-json-output
...
Add JSON format option for orm:mapping:describe command output
2025-07-23 07:31:41 +02:00
Grégoire Paris
d355c4a990
Merge pull request #12081 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-07-22 09:58:24 +02:00
stlgaits
88c395c488
Add --em option help description for orm:mapping:describe
2025-07-22 09:45:20 +02:00
stlgaits
256d6cb0d7
Add JSON format option for orm:mapping:describe command output
2025-07-22 09:43:50 +02:00
Grégoire Paris
62ca8424d8
Merge pull request #12080 from greg0ire/3.5.x
...
Merge 2.20.x up into 3.5.x
2025-07-22 09:35:03 +02:00
Gregoire PARIS
3f2209a571
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2025-07-22 09:09:21 +02:00
Grégoire Paris
1ee01f4473
Merge pull request #12078 from stlgaits/2.20.x
...
Fix embedded classes display in orm:mapping:command output
2025-07-22 08:48:52 +02:00
stlgaits
8a9ed138a8
Fix embedded classes display in orm:mapping:command output
2025-07-21 15:44:46 +02:00
Grégoire Paris
e714b1a2fc
Merge pull request #12075 from andrew-demb/patch-1
...
📖 Actualize code block to be compatible with DBAL v4, use modern PHP
2025-07-15 18:16:50 +02:00
Benjamin Morel
ec0bf05853
Use PHP attributes syntax in schema validator message ( #12074 )
2025-07-15 00:24:16 +02:00
Andrii Dembitskyi
dc58aa3ea1
📖 Actualize code block to be compatible with DBAL v4, use modern PHP
2025-07-14 20:15:18 +03:00
Grégoire Paris
23b74e4f8b
Merge pull request #12063 from wmouwen/test/gh-10788
...
Proxy class with BackedEnum as primary key does not convert the enum
2025-07-14 10:04:21 +02:00
Willem Mouwen
d2b699e6f5
fix: Convert BackedEnum to scalar value when binding a parameter
2025-07-12 20:50:25 +02:00
Willem Mouwen
0338d69324
test: Store an entity with a proxy association that has a BackedEnum primary identifier
2025-07-12 20:50:19 +02:00
Grégoire Paris
a1fdc6eb6e
Merge pull request #12073 from doctrine/3.5.x
...
Merge 3.5.x up into 3.6.x
2025-07-12 10:04:59 +02:00
Grégoire Paris
d583460d63
Merge pull request #12068 from janedbal/prevent-delete-limit-misuse
...
QueryBuilder: prevent misuse of DELETE with LIMIT
2025-07-12 09:49:12 +02:00
Grégoire Paris
2c01dac173
Merge pull request #12072 from greg0ire/update-baseline
...
Update baseline because of doctrine/dbal 4.3.0
2025-07-12 09:46:50 +02:00
Grégoire Paris
137ecb491a
Update baseline because of doctrine/dbal 4.3.0
...
This should fix the build. Maybe some of the reported issues can be
addressed, but if that is the case, it should probably be done on the
next minor branch.
2025-07-11 18:42:54 +02:00
Jan Nedbal
79d4cfdce8
Prevent misuse of DELETE with LIMIT in QueryBuilder
...
This fixes a dangerous bug where LIMIT is silently ignored in DELETE
operations, potentially causing developers to delete all rows instead
of just the intended subset. The setMaxResults() method would be
silently omitted from the final query, making operations like
delete last entry accidentally delete entire tables.
2025-07-10 17:31:03 +02:00
Grégoire Paris
f38ee09082
Merge pull request #12062 from janedbal/binary-id-eager-fetch-reupload
...
Fix unhandled ParameterType case for binary PKs
2025-07-10 17:05:57 +02:00
Jan Nedbal
6ab858a5c5
Apply suggestion from @greg0ire
...
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2025-07-10 16:54:02 +02:00
Jan Nedbal
3dca27ce0d
Fix unhandled ParameterType case for binary PKs
...
Add proper handling for binary primary key parameter types that were
previously causing runtime exceptions. The existing parameter type
switch statement was missing a case for binary types, leading to
unhandled scenarios when working with binary primary keys.
This ensures consistent parameter type handling across all supported
primary key data types in the ORM.
2025-07-07 12:07:52 +02:00
Grégoire Paris
e19704e1f8
Merge pull request #12056 from greg0ire/switch-to-tags
...
Remove branchName from unmaintained branch
2025-07-04 07:50:39 +02:00
Alexis Lefebvre
41ea59ac66
chore: use a shorter name for CI on GitHub Actions ( #12055 )
2025-07-04 00:19:01 +02:00
Alexis Lefebvre
e605e6d569
doc: add links to GitHub Actions on README ( #12054 )
2025-07-04 00:13:51 +02:00
Grégoire Paris
9437675d3b
Remove branchName from unmaintained branch
...
Since https://github.com/doctrine/doctrine-website/pull/372 , they are no
longer necessary, it's possible to rely on tags. Once this is merged,
the branches can be removed.
2025-07-02 23:32:01 +02:00
Grégoire Paris
5301b99533
Merge pull request #12051 from greg0ire/stop-using-depr-method
...
Stop using QueryBuilder::getRootAlias()
2025-07-02 08:35:19 +02:00
Grégoire Paris
63409d638c
Merge pull request #12048 from greg0ire/update-branch-metadata
...
Update branch metadata for 3.5.0
2025-07-02 08:12:04 +02:00
Alexis Lefebvre
d68c1dcd6d
chore: remove run-all.sh
2025-07-02 00:14:28 +02:00
Grégoire Paris
00c7b70211
Stop using QueryBuilder::getRootAlias()
...
That method has been deprecated for almost 15 years, in
85d40847ac .
On top of that I'm adding a deprecation for something related that was
scheduled for deprecation at in the same commit.
2025-07-01 21:21:04 +02:00
Grégoire Paris
9b9160b206
Update branch metadata for 3.5.0
...
3.5.0 has been released.
- 3.6.x is the new upcoming branch;
- 3.5.x is now the current branch;
- 3.4.x is no longer maintained.
2025-07-01 19:45:42 +02:00
Grégoire Paris
6deec3655b
Merge pull request #12046 from greg0ire/3.5.x
...
Merge 3.4.x up into 3.5.x
2025-07-01 19:40:53 +02:00
Grégoire Paris
7f40422d21
Merge remote-tracking branch 'origin/3.4.x' into 3.5.x
2025-07-01 19:13:12 +02:00
Grégoire Paris
e67fa5388b
Merge pull request #12043 from beberlei/Bugfix-DisableNativeLazyLogicException
...
Only throw PHP 8.4 requirement exception when enabling native lazy objects.
2025-06-30 23:43:15 +02:00
Grégoire Paris
80053336c9
Merge pull request #12044 from doctrine/3.4.x
...
Merge branch 3.4.x into 3.5.x
2025-06-30 21:53:04 +02:00
Grégoire Paris
dddcc507ef
Merge pull request #12039 from xabbuh/pr-12036
...
do not register the legacy proxy class name resolver with enabled native lazy ghost
2025-06-30 20:38:34 +02:00
Christian Flothmann
b41d9da88d
do not register the legacy proxy class name resolver with enabled native lazy ghost
2025-06-30 19:14:11 +02:00
Benjamin Eberlei
c04bfb78b7
Only throw PHP 8.4 requirement exception when enabling native lazy objects.
2025-06-30 19:01:49 +02:00
Grégoire Paris
8a5dfc86d4
Merge pull request #12037 from stlgaits/mapping-describe-completion
...
Add console completion for entityName param of orm:mapping:describe c…
2025-06-29 18:26:55 +02:00
Grégoire Paris
79e103c07e
Merge pull request #11978 from Ocramius/feature/#11977-batch-handling-of-inserts-with-given-ids
...
#11977 implemented batching of `INSERT` operations in `UnitOfWork#executeInserts()` so that `EntityPersister#executeInserts()` calls are reduced
2025-06-28 22:19:54 +02:00
stlgaits
5afadf163a
Add console completion for entityName param of orm:mapping:describe command
2025-06-28 11:27:52 +02:00
Grégoire Paris
edfaa37228
Merge pull request #12036 from greg0ire/depr-proxy-autoload
...
Deprecate proxy autoloader and class name resolver
2025-06-28 11:09:37 +02:00
Grégoire Paris
ea056e98ba
Deprecate proxy autoloader and class name resolver
...
These are only needed when not using native lazy objects.
2025-06-27 19:24:23 +02:00
Grégoire Paris
bab5771e98
Merge pull request #12034 from doctrine/3.4.x
...
Merge 3.4.x up into 3.5.x
2025-06-27 18:32:26 +02:00
Grégoire Paris
ee919d6231
Merge pull request #12030 from greg0ire/test-w-lazy-o
...
Rework tests and benchmarks to work with lazy objects
2025-06-27 18:13:24 +02:00
Grégoire Paris
04c390693a
Merge pull request #12033 from greg0ire/remove-assert
...
Remove wrong assertion
2025-06-27 15:55:40 +02:00
Grégoire Paris
49293c4d48
Merge pull request #12032 from doctrine/3.4.x-merge-up-into-3.5.x_dG7qI4BR
...
Merge release 3.4.3 into 3.5.x
2025-06-27 14:44:44 +02:00
Gregoire PARIS
8d9e2e7d4e
Remove wrong assertion
...
When using native lazy objects, it is plain wrong.
2025-06-27 14:42:37 +02:00
Grégoire Paris
ef607f26c2
Merge pull request #12031 from doctrine/stof-patch-1
...
Clean the handling of proxy initialization in the UnitOfWork
2025-06-27 14:14:15 +02:00
Gregoire PARIS
ed543a205c
Rework tests and benchmarks to work with lazy objects
...
These tests and benchmarks are still relevant with lazy objects.
I am not setting up an extra job to test phpbench without native lazy
objects. Instead, I'm bumping the PHP version to 8.4 so that native lazy
objects are in use.
2025-06-27 14:12:58 +02:00
Christophe Coevoet
de1c28bb16
Clean the handling of proxy initialization in the UnitOfWork
...
Using the VarExporter Hydrator to assign default values of properties when marking an entity as initialized is needed only when using var-exporter proxies.
For lazy objects, this behavior is already provided by `ReflectionClass::markLazyObjectAsInitialized`
2025-06-27 13:58:03 +02:00
Grégoire Paris
60ff966d54
Merge pull request #12022 from greg0ire/depr-proxy-dir
...
Provide upgrade path to new ORMSetup::create* signature
2025-06-27 08:12:42 +02:00
Grégoire Paris
33684253c3
Merge pull request #12026 from doctrine/3.4.x-merge-up-into-3.5.x_yt3lc4tn
...
Merge release 3.4.2 into 3.5.x
2025-06-26 21:07:39 +02:00
Grégoire Paris
b4ca0cd5fb
Merge pull request #12024 from greg0ire/3.4.x
...
Merge 2.20.x up into 3.4.x
2025-06-26 20:51:01 +02:00
Grégoire Paris
a49c1beb93
Merge remote-tracking branch 'origin/2.20.x' into 3.4.x
2025-06-26 20:38:31 +02:00
Grégoire Paris
76852cfef3
Provide upgrade path to new ORMSetup::create* signature
...
Currently we have ORMSetup::create*Configuration methods with a
$proxyDir argument that is used to configure the proxy directory, but
also as a seed for generating a namespace for cache systems.
Since these methods could be used with named arguments, renaming the
argument is not really an option and we need separate methods.
2025-06-26 00:14:59 +02:00
Grégoire Paris
3bd89caf36
use lowercase for word in upgrade guide
2025-06-25 23:27:18 +02:00
Grégoire Paris
eb2e7d959c
Merge pull request #12020 from greg0ire/depr-legacy-proxy
...
Deprecate more proxies-related methods or calls
2025-06-25 23:17:56 +02:00
Grégoire Paris
a4b20356f4
Merge pull request #11988 from jannes-io/3.4.x
...
Add index mapping to column
2025-06-25 11:17:22 +02:00
Grégoire Paris
2550b2d1de
Deprecate more proxies-related methods or calls
2025-06-25 00:04:27 +02:00
jannes
e94e1ab126
Add index mapping to Column
...
Adds a new option to Column mapping to add indexes to class fields
directly instead of having to use the Index() class attribute.
This allows users to define indexes in traits
where access to the class isn't available.
Fixes #11982
2025-06-24 19:50:47 +02:00
Grégoire Paris
6307b4fa7d
Merge pull request #8012 from sgehrig/bug/#8011-ordering-with-arithmetic-expression
...
Bug/#8011 ordering with arithmetic expression
2025-06-24 19:50:46 +02:00
Grégoire Paris
19e1a64a91
Merge pull request #12014 from greg0ire/3.5.x
...
Merge 3.4.1 up into 3.5.x
2025-06-21 13:57:03 +02:00
Grégoire Paris
082e776e91
Merge remote-tracking branch 'origin/3.4.x' into 3.5.x
2025-06-21 13:14:14 +02:00
Grégoire Paris
92e2f6db83
Merge pull request #12012 from greg0ire/revert-allfields-dto
...
Revert "add capability to use allfields sql notation"
2025-06-21 12:44:26 +02:00
Grégoire Paris
aa624f64c1
Remove trailing whitespace
2025-06-21 11:58:51 +02:00
Grégoire Paris
e1675eb371
Revert "add capability to use allfields sql notation"
...
This reverts commit 12c721f528 .
This feature introduces several issues:
- It adds alias.*, which is a first, for instance you cannot do
SELECT u.* FROM User u
- If introduces coupling between property order in mapping fields and
the result.
2025-06-21 11:58:42 +02:00
Grégoire Paris
cc2b6385a1
Merge pull request #12011 from greg0ire/3.4.x
...
Merge 2.20.x up into 3.4.x
2025-06-21 11:48:10 +02:00
Grégoire Paris
a64bed9bbb
Merge remote-tracking branch 'origin/2.20.x' into 3.4.x
2025-06-21 11:11:52 +02:00
Grégoire Paris
3272e1c0af
Merge pull request #12008 from greg0ire/add-test-to-todo-list
...
Ensure proxies implementations behave the same on entity not found
2025-06-20 00:24:56 +02:00
Grégoire Paris
69da22d517
Ensure proxies implementations behave the same on entity not found
...
Both implementations are supposed to throw EntityNotFoundException
2025-06-19 10:07:06 +02:00
Grégoire Paris
06109f360f
Merge pull request #12002 from greg0ire/relax-type-declarations
...
Make proxyDir and proxyNs nullable and optional
2025-06-19 08:00:18 +02:00
Grégoire Paris
06a9ef1127
Make proxyDir and proxyNs nullable and optional
...
When using native lazy objects, it should be possible to omit these
arguments, hence the default value.
Also, when using native lazy objects, one should not have to configure
the corresponding Configuration attributes, which means
EntityManager__construct() should be able to pass null to this class,
hence the nullability.
Fixes #11997
2025-06-18 23:23:30 +02:00
Alexander M. Turek
5d21bb158b
Fix calls to Application::add() ( #12006 )
2025-06-18 08:58:26 +02:00
Grégoire Paris
bbde41f712
Merge pull request #12005 from greg0ire/depr-no-lazy-objects
...
Deprecate not using native lazy objects on PHP 8.4+
2025-06-18 07:24:56 +02:00
Alexander M. Turek
8c0994f35f
Detect DBAL's number type ( #11781 )
2025-06-18 02:43:47 +02:00
Grégoire Paris
3d390bc053
Deprecate not using native lazy objects on PHP 8.4+
2025-06-18 00:14:15 +02:00
Grégoire Paris
16f1be7f10
Merge pull request #12004 from doctrine/3.4.x
...
Merge 3.4.x up into 3.5.x
2025-06-18 00:12:23 +02:00
Grégoire Paris
c74df3fab3
Merge pull request #12001 from greg0ire/lazy-objects-by-default
...
Enable native lazy objects by default
2025-06-17 23:50:46 +02:00
Grégoire Paris
f2c902ee03
Rewrite test with native lazy ghost
...
I do not think this needs to be tested on all versions of PHP, using
native lazy objects allows us to remove a deprecation.
2025-06-17 23:35:47 +02:00
Grégoire Paris
4e5e3c5e50
Enable native lazy objects by default
...
This should make the test suite look less like a christmas tree.
2025-06-17 23:09:48 +02:00
Grégoire Paris
da697f218f
Merge pull request #12000 from greg0ire/fix-var-name
...
Use the correct environment variable name for lazy objects and enable them by default
2025-06-17 21:15:38 +02:00
Grégoire Paris
4f47a80deb
Use the correct environment variable name for lazy objects
...
The test suite checks for ENABLE_NATIVE_LAZY_OBJECTS
I have also renamed the matrix variable for the sake of consistency.
2025-06-17 08:35:16 +02:00
Grégoire Paris
1334162a56
Merge pull request #11989 from greg0ire/late-depr
...
Deprecate methods for configuring no longer configurable features
2025-06-16 08:37:59 +02:00
Grégoire Paris
ab89517093
Merge pull request #11987 from greg0ire/update-branch-metadata
...
Update branch metadata
2025-06-16 08:37:20 +02:00
Grégoire Paris
48a51d8470
Merge pull request #11992 from eltharin/error_doc_codeblock
...
repair code block bad showing
2025-06-16 08:36:13 +02:00
eltharin
ab11244f08
repair code block bad showing
2025-06-16 08:03:47 +02:00
Grégoire Paris
68ec3ebaa3
Remove trailing whitespace
2025-06-14 18:14:58 +02:00
Grégoire Paris
4f4ed2f242
Deprecate methods for configuring no longer configurable features
...
In 3.0.0, it is no longer possible to disable lazy ghost objects, and
likewise, it is no longer possible to disable rejecting id collisions in
the identity map, so let us deprecate the related methods.
I was supposed to do this in 3.1.0.
2025-06-14 18:14:54 +02:00
Grégoire Paris
a1c2be140d
Update branch metadata
...
- 3.5.x has been created
- 3.4.0 has been released
- 3.3.x is no longer maintained
2025-06-14 13:50:55 +02:00
Grégoire Paris
4664373bd0
Merge pull request #11985 from doctrine/3.3.x-merge-up-into-3.4.x_KXrSCX8l
...
Merge release 3.3.4 into 3.4.x
2025-06-14 13:47:14 +02:00
Grégoire Paris
5ab6b74f14
Merge pull request #11984 from doctrine/2.20.x
...
Merge 2.20.x up into 3.3.x
2025-06-14 13:32:43 +02:00
Marco Pivetta
79cc70a62f
#11977 expanded test coverage to check interleaved assigned-id vs generated-id entities
...
As noted by @bendavies
Ref: https://github.com/doctrine/orm/pull/11978#discussion_r2141143273
2025-06-11 23:44:24 +02:00
Marco Pivetta
4e6b5a1b0b
#11977 provided method documentation / example, as per @greg0ire's feedback
...
Ref: https://github.com/doctrine/orm/pull/11978#discussion_r2140881217
2025-06-11 22:53:22 +02:00
Marco Pivetta
21b144fff9
#11977 removed unused type-hint, which can be completely inferred by the parameters
2025-06-11 22:50:15 +02:00
Marco Pivetta
658940de38
#11977 only perform batching if/when the AssignedGenerator is in use
...
The `SequenceGenerator` is potentially used for PostgreSQL table auto-generated fields, but
the `SequenceGenerator` is not a **POST**-insert generator.
Because the `SequenceGenerator` is used in the middle of `INSERT` operations performed
by persisters, we cannot rely on it in batching operations: disabling it, so we get a green
test suite on PostgreSQL.
This change makes `GH10531Test` pass on PostgreSQL: see #10531
2025-06-11 18:26:20 +02:00
Marco Pivetta
ad487370f5
#11977 hardened InsertBatchTest to check entity types of sequential batches
2025-06-11 18:16:45 +02:00
Marco Pivetta
259f83b549
#11977 added test coverage verifying that persisters are being used to batch INSERTs
2025-06-11 17:36:24 +02:00
Marco Pivetta
4a24860dcf
#11977 isolated INSERT batch generation to own @internal performance-sensitive class
2025-06-11 17:18:23 +02:00
Marco Pivetta
116cdf8661
#11977 implemented simplistic (and ugly) batch handing of INSERT operations in UnitOfWork#executeInserts()
...
This logic also brings a minor benefit in reducing the number of times `ListenersInvoker#getSubscribedSystems`
is queried.
TODOs:
* [ ] integration test this - it is expected to reduce the number of `EntityPersister#executeInserts()` calls
* [ ] refactor this by creating a new `@internal` class for the batch, and perhaps batch via a generator
* [ ] reduce amount of repeated `getClassMetadata()` calls
* [ ] reduce overall size of `UnitOfWork` code, instead of increasing it
2025-06-11 15:43:04 +02:00
Grégoire Paris
71550106d4
Merge pull request #11975 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-7.3.0
...
Bump doctrine/.github from 7.2.2 to 7.3.0
2025-06-09 22:24:12 +02:00
dependabot[bot]
36011f0d0f
Bump doctrine/.github from 7.2.2 to 7.3.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 7.2.2 to 7.3.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/7.2.2...7.3.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-version: 7.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-09 07:13:58 +00:00
Grégoire Paris
c97d775370
Merge pull request #11963 from dbu/update-doc-building
...
cleanup doc building instructions
2025-06-09 07:45:09 +02:00
Grégoire Paris
97b29bb063
Merge pull request #11973 from eltharin/add_constructor
...
Add constructor argument
2025-06-07 09:41:24 +02:00
Grégoire Paris
e9f0345a97
Merge pull request #11966 from greg0ire/partial-revert-10162-2
...
Partially revert to stdout
2025-06-07 09:41:03 +02:00
eltharin
b7fff508a4
add argument in constructor
2025-06-06 18:39:24 +02:00
Grégoire Paris
c6fa14ed52
Merge pull request #11971 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-06-06 13:05:27 +02:00
Grégoire Paris
05c8c5f114
Merge pull request #11969 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2025-06-06 12:29:34 +02:00
Gregoire PARIS
1dbdb0e895
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2025-06-06 12:08:24 +02:00
Grégoire Paris
0feb09d0d6
Partially revert to stdout
...
This command's purpose is to provide structured data, except for a call
to caution() that warns the user in case they do not have any mapped
entities or they have errors.
2025-06-06 07:57:38 +02:00
Grégoire Paris
fe5f8bbaa1
Merge pull request #11965 from greg0ire/partial-revert-10162
...
Revert to stdout for MappingDescribeCommand
2025-06-06 00:04:07 +02:00
Grégoire Paris
ecf3cec376
chore: ignore deprecations from Symfony
...
Symfony 7.3 is not available to all of our users, so we cannot switch to
native lazy objects, which require a PHP version higher than the lowest
PHP version we support.
2025-06-05 23:19:32 +02:00
Grégoire Paris
0a714db4d9
Revert to stdout for MappingDescribeCommand
...
In f256d996cc , I did a global move to
stderr for notifications, and went a bit overboard for
MappingDescribeCommand, which purpose is to output a description.
2025-06-05 23:07:28 +02:00
David Buchmann
471fda8d0b
cleanup doc building instructions
2025-06-05 07:44:37 +02:00
Grégoire Paris
dfe32c2f74
Unwrap literalinclude block ( #11962 )
...
For some reason, it does not appear to work when nested inside a
code-block directive. Anyway, if you specify the language attribute, you
get markup identical to what you obtain when using code-block and
literalinclude, so this wrapping seems unneeded.
2025-06-04 00:18:59 +02:00
Grégoire Paris
c51ba3ce6b
Merge pull request #11951 from dbu/fix-doc-syntax
...
insert blank line before code in code-block
2025-05-27 14:08:44 +02:00
David Buchmann
fe025e8d23
insert blank line before code in code-block
2025-05-27 08:59:14 +02:00
Grégoire Paris
0a43e4af8f
Merge pull request #11946 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-05-25 18:35:30 +02:00
Grégoire Paris
7111cc09f3
Merge pull request #11945 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2025-05-25 18:12:06 +02:00
Grégoire Paris
777504b9c4
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2025-05-24 19:19:52 +02:00
Dimitri Dovgan
9d9985076a
Add missing closing bracket ( #11937 )
...
Corrected a malformed attribute in the documentation.
2025-05-18 12:08:50 +02:00
Olivier Massot
35d301b052
Association Mappings: replace assertions by explicit exceptions ( #11896 )
2025-05-16 08:37:08 +02:00
Grégoire Paris
083b241c81
Merge pull request #11846 from eltharin/all_fields
...
add capability to use allfields sql notation
2025-05-08 10:55:51 +02:00
Grégoire Paris
ae2957cf7e
Merge pull request #11932 from dbannik/2.20.3-issue-11931
...
#11931 Bug when change sql filter [Related issue #11694 ]
2025-05-06 07:53:48 +02:00
Dmitry Bannik
e172b3bf9c
#11931 Bug when change sql filter [Related issue #11694 ]
...
This fix takes into account the invalidation of the filter sql for SingleTablePersister and JoinedSubclassPersister
2025-05-05 23:43:27 +03:00
Grégoire Paris
c9c6e8da2e
Merge pull request #11834 from dbu/document-generated-columns
...
document how to work with generated columns
2025-05-05 10:05:55 +02:00
Grégoire Paris
528b8837e1
Merge pull request #11929 from doctrine/2.20.x-merge-up-into-2.21.x_KkdqS0u7
...
Merge release 2.20.3 into 2.21.x
2025-05-02 21:57:23 +02:00
Grégoire Paris
b9989555fd
Merge pull request #11927 from greg0ire/3.4.x
...
Merge 3.3.x up into 3.4.x
2025-05-02 20:26:12 +02:00
Grégoire Paris
80a79f6d2d
Merge remote-tracking branch 'origin/3.3.x' into 3.4.x
2025-05-02 19:48:18 +02:00
Grégoire Paris
1f1891d3e2
Merge pull request #11926 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2025-05-02 19:42:51 +02:00
Grégoire Paris
c9fc4d90e5
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2025-05-02 19:17:15 +02:00
Grégoire Paris
17d28b5c4c
Merge pull request #11917 from stof/lazy_ghost_postload
...
Fix the initialization of lazy-ghost proxies with postLoad listeners
2025-05-02 19:07:53 +02:00
Christophe Coevoet
a2d510c6f4
Fix the initialization of lazy-ghost proxies with postLoad listeners
...
PostLoad listeners might initialize values for transient properties, so
the proxy should not skip initialization when using transient
properties.
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com >
2025-05-02 15:27:59 +02:00
Anton
0e3cff0c6a
Update composite-primary-keys.rst ( #11919 )
...
Fix examples
2025-05-01 23:56:00 +02:00
Grégoire Paris
5c50ed925a
Merge pull request #11924 from xabbuh/dbal-6867
...
prefer primary key constraints over Index::isPrimary()
2025-05-01 13:09:32 +01:00
Christian Flothmann
5a1e560f87
prefer primary key constraints over Index::isPrimary()
2025-05-01 13:46:41 +02:00
Grégoire Paris
78e8887759
Merge pull request #11911 from xabbuh/dbal-6890
...
disable detecting modified indexes with DBAL 4.3
2025-04-25 11:02:23 +02:00
Grégoire Paris
9a3f5579f1
Merge pull request #11921 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-04-24 18:59:58 +02:00
Grégoire Paris
5eb298b99b
Merge pull request #11914 from xabbuh/dbal-6886
...
do not use deprecated index features
2025-04-23 10:54:33 +02:00
Christian Flothmann
5eb0255f47
do not use deprecated index features
2025-04-23 08:01:37 +02:00
Grégoire Paris
28575f58af
Merge pull request #11903 from xabbuh/dbal-6867
...
do not use deprecated primary key constraint features
2025-04-23 07:56:01 +02:00
Christian Flothmann
457d2d2841
do not use deprecated primary key constraint features
2025-04-23 07:07:30 +02:00
eltharin
12c721f528
add capability to use allfields sql notation
...
in a dto, this PR allow to call u.* to get all fileds fo u entity in one call,
2025-04-22 21:40:54 +02:00
Grégoire Paris
9a9c3e8aba
Merge pull request #11847 from eltharin/newentityInDto
...
add capability to hydrate an entity in a dto
2025-04-22 21:00:16 +02:00
Christophe Coevoet
2a4ebca90e
Refactor tests to avoid using instance properties to track postLoad
...
The old proxy implementation of doctrine/common was triggered by public
methods rather than access to properties (making public properties
unsupported in entities), so tests could use public instance properties
to track the state of postLoad lifecycle callbacks without triggering
the proxy initialization when reading that state (which then changes the
state of triggering the postLoad callback).
As the new proxy implementation hooks into properties instead, the tests
now use a static method (ensuring it is reset properly before loading
the instance for which we care about the tracking) instead of an
instance property.
2025-04-22 17:39:29 +02:00
Christian Flothmann
5d01c66c84
disable detecting modified indexes with DBAL 4.3
2025-04-22 12:45:20 +02:00
Yevhen Sidelnyk
a2516b67dc
[DOC]: fix setFileExtension() xml mapping documentation ( #11905 )
...
* doc: fix setFileExtension() xml mapping documentation
* Update docs/en/reference/xml-mapping.rst
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
---------
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2025-04-21 22:21:43 +02:00
eltharin
46a020108d
add capability to hydrate an entity in a dto
...
this PR allow to hydrate data in an entity nested in a dto
2025-04-21 14:29:19 +02:00
Grégoire Paris
3d4e9b3ecf
Merge pull request #11912 from xabbuh/dbal-6823
...
[#6823 ] pass unquoted identifier folding to AbstractPlatform
2025-04-20 11:09:40 +02:00
Grégoire Paris
d1ee40e7d5
Merge pull request #11908 from xabbuh/dbal-6674
...
use the platform to quote table names
2025-04-20 11:08:07 +02:00
Christian Flothmann
65d2720764
[ #6823 ] pass unquoted identifier folding to AbstractPlatform
2025-04-17 23:56:20 +02:00
Grégoire Paris
3e18a58de6
Merge pull request #11907 from xabbuh/dbal-6728
...
do not use deprecated foreign key constraint features
2025-04-17 23:10:47 +02:00
Christian Flothmann
a9f9202c00
do not use deprecated foreign key constraint features
2025-04-17 21:18:35 +02:00
Grégoire Paris
d8cb71fe4a
Merge pull request #11906 from xabbuh/dbal-6710
...
no longer use Table::columnsAreIndexed()
2025-04-17 08:28:28 +02:00
Christian Flothmann
d659591b6c
use the platform to quote table names
2025-04-15 12:49:24 +02:00
Christian Flothmann
e2430ac9a7
no longer use Table::columnsAreIndexed()
2025-04-15 12:43:51 +02:00
Grégoire Paris
b286d6cd2c
Merge pull request #11902 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-04-14 23:38:21 +02:00
Grégoire Paris
0b373f6c27
Merge pull request #11900 from xabbuh/dbal-6886
...
replace Index::overrules() with custom checks
2025-04-14 23:17:07 +02:00
Benjamin Eberlei
443cf92242
Merge pull request #11852 from beberlei/PropertyHookSupport
...
Final tests and adjustments to allow mapping properties with hooks.
Property hooks are not supported when using `symfony/var-exporter`.
2025-04-12 11:33:27 +02:00
Christian Flothmann
36b9064dbe
replace Index::overrules() with custom checks
2025-04-07 08:53:18 +02:00
Matthias Pigulla
9bf407f336
Fix IN/NOT IN expression handling and support enums when matching on to-many-collections
...
This fixes that using a `Criteria` with an `IN` or `NIN` expression on a to-many collection currently leads to an SQL error (#6173 ). The `ManyToMany` persister needs to know about the slightly different SQL syntax for `[NOT] IN ()`.
In the case of `[NOT] IN` expressions, the value will be an array, which also required me to change (I guess "fix") the parameter type handling. I have pulled the necessary code from the `BasicEntityPersister` and placed it as static helper methods in `PersisterHelper`.
This is somewhat inspired by #11516 , which aims at fixing #11481 : By re-using the parameter type handling code, it also fixes using backed enums in `EQ`, `IN` and `NIN` expressions within `Criteria` when `matching()` on one-to-many and many-to-many collections.
2025-03-30 22:44:12 +02:00
Benjamin Eberlei
eb3b984132
Add support for PHP 8.4 Lazy Objects RFC with configuration flag ( #11853 )
...
* Introduce PHP 8.4 lazy proxy/ghost API.
* Call setRawValueWithoutLazyInitialization for support with lazy proxy.
* Refactorings
* Revert test change partially and skip with lazy objects.
* Houskeeping: phpcs
* Run with ENABLE_LAZY_PROXY=1 in php 8.4 matrix.
* Fix ci
* Transient properties are not skipping lazy initialization anymore, to expensive and could lead to errors. Adjust lifecycle test that uses transient properittes for assertions.
* Restore behavior preventing property hook use in 8.4 in unsupported coditions
* Add \ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com >
* Rename isNativeLazyObjectsEnabled/enableNativeLazyObjects.
* Housekeeping: phpcs
* Update advanced-configuration docs and make proxy config variables not required anymore with native lazy objects.
* Move code around
* Apply suggestions from code review
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
* Pick suggestions
---------
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com >
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2025-03-29 23:14:13 +01:00
Grégoire Paris
cc29ae0d36
Merge pull request #11891 from mpdude/expression-matching-caveats
...
Add more detailed caveats for using the Collection filtering API
2025-03-29 11:31:36 +01:00
Grégoire Paris
bd4a053d29
Merge pull request #11894 from DavidPetrasek/3.3.x
...
Fix URL's in xml-mapping.rst
2025-03-27 20:59:26 +01:00
David Petrásek
52fbfb3785
Revert to http for namespace name
...
These URLs are meant as identifiers rather than actual urls intended to
be used to perform an HTTP request.
2025-03-27 17:39:10 +01:00
Matthias Pigulla
c259371e5f
Remove property hooks mention
2025-03-26 18:58:17 +01:00
Matthias Pigulla
dcdd58b642
working-with-associations.rst aktualisieren
...
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2025-03-26 18:14:01 +01:00
Matthias Pigulla
7b9c53854f
Add more detailed caveats for using the Collection filtering API
2025-03-26 13:38:52 +01:00
Grégoire Paris
cdc5fe11dd
Merge pull request #11889 from Rixafy/docs-typo-fix
...
Fix docs typo (nulable -> nullable)
2025-03-25 23:16:01 +01:00
Rixafy
69ece00564
Fix docs typo (nulable -> nullable)
2025-03-25 22:25:00 +01:00
Grégoire Paris
04395f98f9
Merge pull request #11887 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-03-25 16:25:25 +01:00
Grégoire Paris
4baa7bd252
Merge pull request #11882 from xabbuh/dbal-6867
...
favor Table::addPrimaryKeyConstraint() over Table::setPrimaryKey()
2025-03-25 16:06:32 +01:00
Christian Flothmann
c55f10e501
favor Table::addPrimaryKeyConstraint() over Table::setPrimaryKey()
2025-03-25 12:40:28 +01:00
Grégoire Paris
f3fb79658e
Merge pull request #11886 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2025-03-25 08:44:22 +01:00
Grégoire Paris
10a32cb824
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2025-03-25 07:56:47 +01:00
Grégoire Paris
c679d1b007
Merge pull request #11885 from greg0ire/no-triple-stars
...
Avoid triple stars
2025-03-25 07:51:08 +01:00
Grégoire Paris
1e15b22dcb
Avoid triple stars
...
They don't have a special meaning, and are rendered like this:
<strong>*REQUIRED</strong>*.
2025-03-25 07:49:53 +01:00
Grégoire Paris
0c10010f9f
Merge pull request #11884 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-03-24 22:34:05 +01:00
Grégoire Paris
d88371331d
Merge pull request #11883 from xabbuh/dbal-6864
...
adapt assertions for new consistent PRIMARY KEY formatting
2025-03-24 22:02:26 +01:00
Christian Flothmann
b260ec8a00
adapt assertions for new consistent PRIMARY KEY formatting
2025-03-24 21:40:11 +01:00
Grégoire Paris
44057b4683
Merge pull request #11845 from lacatoire/update-message-annotation-to-attribute
...
Update message of `ORMInvalidArgumentException`
2025-03-24 10:58:02 +01:00
Grégoire Paris
013df03795
Upgrade to doctrine/coding-standard 13 ( #11881 )
2025-03-24 07:18:07 +01:00
Louis-Arnaud
2d2a34407c
Use attributes in exception message
2025-03-23 16:07:31 +01:00
Grégoire Paris
be8da83aca
Merge pull request #10624 from simPod/deferrable
...
feat: allow setting foreign key as deferrable
2025-03-23 10:09:10 +01:00
Grégoire Paris
f5ab687226
Merge pull request #11876 from greg0ire/address-reflfield-depr
...
Address deprecation of ClassMetadata::$reflFields
2025-03-19 15:53:29 +01:00
Grégoire Paris
742eead849
Merge pull request #11878 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-03-18 21:38:05 +01:00
Grégoire Paris
1072ea6db4
Merge pull request #11877 from greg0ire/iso-phpunit-config
...
Iso phpunit config
2025-03-18 20:41:25 +01:00
Grégoire Paris
baf2c60cc4
Use more similar PHPUnit configurations
...
The dev configuration and CI configuration should not diverge this much.
I do not think the current situation was intended. A difference that
remains after my changes is the bootstrap file, which in dev seems aimed
at helping contributors setup their environment.
2025-03-18 20:08:09 +01:00
Grégoire Paris
8e620cad40
Do not run CI jobs when changing dev PHPUnit file
...
This file is never used in the CI.
2025-03-18 20:08:09 +01:00
Grégoire Paris
f98e871913
Address deprecation of ClassMetadata::$reflFields
...
We should use the newly introduced ClassMetadata::$propertyAccessors instead.
See https://github.com/doctrine/orm/pull/11659
2025-03-18 19:39:48 +01:00
Grégoire Paris
4b0c11978e
Merge pull request #11875 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-03-18 14:25:17 +01:00
Grégoire Paris
daf0f82884
Merge pull request #11874 from doctrine/2.20.x
...
Merge 2.20.x up into 3.3.x
2025-03-18 13:52:20 +01:00
Stefan Gehrig
067ad51b3f
fixes sqlite sql inconsistency
2025-03-17 08:48:30 +01:00
Grégoire Paris
0ef5610a6c
Merge pull request #11873 from beberlei/GH-11659-FollowUp1
...
Bugfix: Missed a spot using getUnderlyingReflector
2025-03-16 23:18:10 +01:00
Benjamin Eberlei
e29d0e977d
Bugfix: Missed a spot using getUnderlyingReflector
2025-03-15 17:39:14 +01:00
Stefan Gehrig
00c77213fb
fixes codesniffer violation
2025-03-15 09:42:21 +01:00
Matteo Beccati
3303cd3b5d
Fix non-deterministic test ( #11866 )
2025-03-14 00:09:36 +01:00
Grégoire Paris
afcf91e839
Merge pull request #11863 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-7.2.2
...
Bump doctrine/.github from 7.2.1 to 7.2.2
2025-03-10 09:24:12 +01:00
dependabot[bot]
c61a9b3b6d
Bump doctrine/.github from 7.2.1 to 7.2.2
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 7.2.1 to 7.2.2.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/7.2.1...7.2.2 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-10 06:43:02 +00:00
Grégoire Paris
bd0509a064
Merge pull request #11825 from eltharin/bug_arg_order
...
FIX - nested dto's doesn't have arguments in good order and Dto with only objects bug
2025-03-05 15:38:16 +01:00
Stefan Gehrig
c68b8f90b3
adds a test for postgres that uses a HIDDEN result variable for ordering based on arithmetic expression
2025-03-05 09:28:52 +01:00
Stefan Gehrig
aa4f9ce9e9
CS fix based on PHP_CodeSniffer report
2025-03-05 09:22:57 +01:00
Grégoire Paris
d540f73778
Merge pull request #11659 from beberlei/PropertyHooks
...
Necessary refactorings for Property hooks
2025-02-27 20:04:08 +01:00
Stefan Gehrig
d96fc23327
skips tests when running on postgres
2025-02-27 10:30:21 +01:00
Benjamin Eberlei
201d751a26
Allow access to underlying reflector for property accessor.
2025-02-26 00:48:30 +01:00
Benjamin Eberlei
6308b2fd86
Update tests/Tests/ORM/Mapping/PropertyAccessors/ReadOnlyAccessorTest.php
...
Co-authored-by: Claudio Zizza <859964+SenseException@users.noreply.github.com >
2025-02-26 00:38:41 +01:00
Benjamin Eberlei
8f99e84438
Update src/Mapping/PropertyAccessors/EnumPropertyAccessor.php
...
Co-authored-by: Claudio Zizza <859964+SenseException@users.noreply.github.com >
2025-02-26 00:34:12 +01:00
Benjamin Eberlei
e36b7755e9
Houskeeping: phpcs
2025-02-23 19:43:26 +01:00
Benjamin Eberlei
7b4d869b31
Merge branch '3.4.x' into PropertyHooks
2025-02-23 19:23:20 +01:00
eltharin
708bd84fe2
fix bugs
...
nested dto are not in good argument order
dto with only dto does'nt work
2025-02-21 10:35:19 +01:00
Louis-Arnaud
3aed6912a3
Update ORMInvalidArgumentException.php
...
update message to use attribute instead of annotation
2025-02-21 10:10:22 +01:00
Gerhard Seidel
4fb044d5f6
fix: cs
2025-02-20 10:01:35 +08:00
Grégoire Paris
8873109b4f
Merge pull request #11840 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-02-18 23:12:40 +01:00
Grégoire Paris
36bef3f959
Merge pull request #11839 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2025-02-18 22:42:29 +01:00
Grégoire Paris
980ccc58dc
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2025-02-18 21:40:58 +01:00
Grégoire Paris
62ca4624a9
Merge pull request #11837 from greg0ire/restore-exception
...
Restore logic exception
2025-02-17 20:39:14 +01:00
Grégoire Paris
1aed318b7b
Restore logic exception
...
This exception was dropped by mistake during a merge-up, and should be
present until Doctrine officially supports property hooks.
2025-02-17 19:17:20 +01:00
David Buchmann
8ce7b310c5
document how to work with generated columns
2025-02-17 15:06:18 +01:00
Gerhard Seidel
2a953c5e2b
fix: PrePersistEventTest and cs
2025-02-17 14:01:08 +08:00
Benjamin Eberlei
5077ae41e5
Housekeeping
2025-02-15 23:25:34 +01:00
Benjamin Eberlei
8e1a27b8cc
Explain deprecation in UPGRADE.md
2025-02-15 22:32:16 +01:00
Benjamin Eberlei
e7db1b005f
Add ReadOnlyAccessorTest
2025-02-15 22:17:29 +01:00
Benjamin Eberlei
72ce662e45
Tests for ObjectCastPropertyAccessor and RawValuePropertyAccessor.
2025-02-15 22:09:36 +01:00
Benjamin Eberlei
673cf0d4d8
Add test for ObjectCastPropertyAccessor.
2025-02-15 21:45:01 +01:00
Benjamin Eberlei
1cae0534a0
Extract PropertyAccessorFactory, tests for enum and typednodefault accessors.
2025-02-15 21:38:09 +01:00
Benjamin Eberlei
6fb3083f63
Merge remote-tracking branch 'beberlei/PropertyHooks' into PropertyHooks
2025-02-15 00:02:45 +01:00
Benjamin Eberlei
68c17ca1bd
Merge remote-tracking branch 'origin/3.4.x' into PropertyHooks
2025-02-15 00:01:50 +01:00
Benjamin Eberlei
82cf29407c
Update src/Mapping/PropertyAccessors/PropertyAccessor.php
...
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2025-02-15 00:01:22 +01:00
Gerhard Seidel
abc6a40ccb
fix: calling scheduleForInsert twice
...
If scheduleForInsert was called in prePersist hook already, then persistNew need to check this case first, otherwise a ORMInvalidArgumentException will be thrown
2025-02-14 12:45:13 +08:00
Grégoire Paris
158605bf24
Merge pull request #11833 from HypeMC/fix-dql
...
Fix DQL example with composite key
2025-02-13 23:49:22 +01:00
Grégoire Paris
2c2ef65817
Merge pull request #11826 from aprat84/gh-11741
...
Clone query hints and parameters in `LimitSubqueryOutputWalker` constructor
2025-02-12 08:52:33 +01:00
Gregor Harlan
f8fdeaf41e
UPGRADE.md: fix typo ( #11832 )
2025-02-12 00:10:14 +01:00
HypeMC
1c33a86983
Fix DQL example with composite key
2025-02-11 16:10:59 +01:00
Albert Prat
310fe1cccb
Clone query hints and parameters in LimitSubqueryOutputWalker constructor
...
This fixes a bug that arises when using Pagination and an entity relation is mapped with fetch-mode EAGER but setFetchMode LAZY (or anything that is not EAGER) has been used on the query. If the query use WITH condition, an exception is incorrectly raised (Associations with fetch-mode=EAGER may not be using WITH conditions).
The class LimitSubqueryOutputWalker clones the query, but not its parameters and hints, so the generated subquery does not know that fetch-mode has been overridden.
Fixes #11741
2025-02-11 10:48:14 +01:00
Grégoire Paris
a67f677747
Merge pull request #11707 from jorenMartens/2.20.x
...
[DDC-551] fix, add filter support in oneToOne relation 2.20.x
2025-02-07 08:23:53 +01:00
Grégoire Paris
ae74be5e9d
Merge pull request #11823 from doctrine/3.3.x-merge-up-into-3.4.x_lzhu6IBq
...
Merge release 3.3.2 into 3.4.x
2025-02-05 08:08:57 +01:00
Grégoire Paris
c9557c588b
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2025-02-04 20:43:15 +01:00
Grégoire Paris
73e68f3c7d
Merge pull request #11821 from doctrine/2.20.x-merge-up-into-2.21.x_8O8nHxqC
...
Merge release 2.20.2 into 2.21.x
2025-02-04 20:24:01 +01:00
Grégoire Paris
19912de927
Merge pull request #11820 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-7.2.1
...
Bump doctrine/.github from 7.1.0 to 7.2.1
2025-02-04 20:17:01 +01:00
dependabot[bot]
737cca5b78
Bump doctrine/.github from 7.1.0 to 7.2.1
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 7.1.0 to 7.2.1.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/7.1.0...7.2.1 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-04 18:23:54 +00:00
Grégoire Paris
4163efd2f2
Merge pull request #11813 from VincentLanglet/queryType
...
[RFC] Expose QueryBuilder::getType
2025-01-29 11:54:45 +01:00
Vincent Langlet
d7ac6123ad
Expose QueryType
2025-01-29 09:27:44 +01:00
Grégoire Paris
aff82af7de
Merge pull request #11811 from greg0ire/quoteIdentifier-depr
...
Address quoteIdentifier() deprecation
2025-01-28 23:17:29 +01:00
Grégoire Paris
9e999ea1ff
Merge pull request #11792 from dbannik/11783-failure-with-indexed-relation
...
11783 failure with indexed relation
2025-01-28 15:32:25 +01:00
Bob van de Vijver
6755bb0c7b
Fix Hydration when use ManyToMany[indexBy]
...
The bug related (#11694 ) and fixed mapping of sql column alias to field in entity (#11783 ) and
invalidate cache [cache/persisted/entity|cache/persisted/collection] when sql filter changes
2025-01-27 15:35:59 +03:00
Alexander M. Turek
73777d0bd4
Merge branch '2.20.x' into 2.21.x
...
* 2.20.x:
Introduce testNotListedValueInEnumArray
Fix documentation for JoinColumn nullable (#11798 )
Ignore deprecations from doctrine/common
Fix fields of transient classes being considered duplicate with `reportFieldsWhereDeclared`
2025-01-26 19:56:20 +01:00
Simon Podlipsky
bd260d1be8
feat: allow setting foreign key as deferrable
2025-01-26 13:06:55 +01:00
Grégoire Paris
aa141bf001
Address quoteIdentifier() deprecation
...
We should be using quoteSingleIdentifier(), assuming we only ever pass
single identifiers here.
See https://github.com/doctrine/dbal/pull/6590
2025-01-26 12:01:14 +01:00
Grégoire Paris
cd1a52c7e4
Merge pull request #11808 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2025-01-25 11:29:59 +01:00
Grégoire Paris
cf39e00553
Merge pull request #11807 from greg0ire/display-deprecations
...
Display Doctrine deprecations when running PHPUnit
2025-01-25 11:09:40 +01:00
Grégoire Paris
27b47841be
Display Doctrine deprecations when running PHPUnit
...
This will give a signal that there is work to be done without blocking
other contributions by failing the build.
2025-01-25 10:53:36 +01:00
Grégoire Paris
c2a49327a7
Merge pull request #11799 from HypeMC/enum-array-error
...
Fix invalid enum value in array of enums
2025-01-22 11:54:59 +01:00
Maxime COLIN
9bd7242376
Introduce testNotListedValueInEnumArray
2025-01-22 02:25:34 +01:00
pawel-slowik
fff085b63f
Fix documentation for JoinColumn nullable ( #11798 )
...
Nullability is not inherited from the PHP type. The change that enabled
this feature was reversed in https://github.com/doctrine/orm/pull/8732 .
2025-01-22 00:12:00 +01:00
Grégoire Paris
5ad5b11ae1
Merge pull request #11769 from HypeMC/fix-reportfieldswheredeclared
...
Fix fields of transient classes being considered duplicate with `reportFieldsWhereDeclared`
2025-01-20 23:48:32 +01:00
Grégoire Paris
c12fd2cb94
Merge pull request #11793 from greg0ire/doctrine-common-support
...
Ignore deprecations from doctrine/common
2025-01-18 22:29:13 +01:00
Grégoire Paris
44d5d4a779
Ignore deprecations from doctrine/common
...
These new issues are caused by doctrine/common 3.5.0, released 2 weeks
ago.
2025-01-17 08:33:24 +01:00
Grégoire Paris
5a599233c9
Merge pull request #11791 from jonnyeom/patch-2
...
UPGRADE: Document QueryBuilder::setParameters() Type enforcement
2025-01-17 07:55:07 +01:00
Jonny Eom
596da353c2
UPGRADE: Document QueryBuilder::setParameters() Type enforcement
2025-01-16 17:14:20 +01:00
Alexander M. Turek
0d2cb6acd1
Fix CS ( #11782 )
2025-01-07 09:53:43 +01:00
Stefan Gehrig
ec6d1b9f72
fixes whitespace
...
Signed-off-by: Stefan Gehrig <stefan.gehrig.hn@googlemail.com >
2025-01-07 08:51:19 +01:00
Stefan Gehrig
d809fed52a
fixes code sniffer complaints
...
Signed-off-by: Stefan Gehrig <stefan.gehrig.hn@googlemail.com >
2025-01-07 08:48:42 +01:00
Alexander M. Turek
327418a4b7
Merge branch '3.3.x' into 3.4.x
...
* 3.3.x:
Update working-with-objects.rst (#7553 )
changed confusing negative wording (#11775 )
2025-01-06 20:51:29 +01:00
Stefan Gehrig
0e4786dfa8
adds testcases for order by items enclosed in ((...)) (double brackets - just one bracket does not work)
...
just one bracket (...) gives
Exception : [Doctrine\ORM\Query\QueryException] [Syntax Error] line 0, col xx: Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got '('
2025-01-03 10:45:08 +01:00
Stefan Gehrig
c429262f02
adds detection of literals/result variables at the beginning of an order by item with arithmetic expression
...
Not sure whether this covers the whole problem regarding complex expressions in order by items but it fixes the provided test cases
2025-01-03 10:45:07 +01:00
Stefan Gehrig
f4fdcbcdcb
adds more test cases
2025-01-03 10:44:17 +01:00
Stefan Gehrig
b0806469d5
adds test case for GH issue #8011
2025-01-03 10:44:17 +01:00
Jamie Purchase
68c87740aa
Update working-with-objects.rst ( #7553 )
...
Spelling.
2025-01-02 00:25:25 +01:00
Florian Sylvain
55dc02c39f
changed confusing negative wording ( #11775 )
2024-12-31 00:09:28 +01:00
Grégoire Paris
9f2b367081
Merge pull request #11776 from curry684/issue-9558
...
Respect referencedColumnName defaults in custom naming strategies
2024-12-25 00:20:07 +01:00
Niels Keurentjes
a9873c86bb
Take hardcoded reference column name out of JoinColumn attribute
...
Previously, when using a custom naming strategy, explicitly declaring a JoinColumn required specifying the referencedColumnName always as it would default to id no matter the naming strategy. This PR changes it to be determines correctly.
Ref #9558
2024-12-23 19:44:56 +01:00
Grégoire Paris
8ebd98ee92
Merge pull request #11773 from doctrine/3.3.x-merge-up-into-3.4.x_xx7XyUCl
...
Merge release 3.3.1 into 3.4.x
2024-12-19 08:27:07 +01:00
Grégoire Paris
e89b58a13f
Merge pull request #11771 from doctrine/2.20.x-merge-up-into-2.21.x_3Yg2ZYgM
...
Merge release 2.20.1 into 2.21.x
2024-12-19 08:16:04 +01:00
Grégoire Paris
b1f8253105
Merge pull request #11772 from doctrine/2.20.x
...
Merge 2.20.x up into 3.3.x
2024-12-19 08:08:14 +01:00
Grégoire Paris
e3cabade99
Merge pull request #11768 from pbreteche/HINT_READ_ONLY-use-its-boolean-value
...
Check hint value before considering instance read-only
2024-12-19 07:48:36 +01:00
HypeMC
9402f9e0f7
Fix docs examples for mappings overrides ( #11770 )
2024-12-18 20:41:44 +01:00
HypeMC
4feaa470af
Fix fields of transient classes being considered duplicate with reportFieldsWhereDeclared
2024-12-18 15:42:12 +01:00
Pierre Bretéché
4a9101f383
Check hint value before considering instance read-only
...
This fixes a bug that occurs when calling setHint(Query::HINT_READ_ONLY, false) from a query object.
UnitOfWork checks if this hint exists without considering the value passed as second argument.
Handling the second parameter improves consistency with documentation.
https://www.doctrine-project.org/projects/doctrine-orm/en/2.20/reference/improving-performance.html#read-only-entities
2024-12-18 14:55:22 +01:00
Grégoire Paris
f91da5b950
Merge pull request #11767 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-7.1.0
...
Bump doctrine/.github from 6.0.0 to 7.1.0
2024-12-16 08:30:26 +01:00
dependabot[bot]
66f654d4e2
Bump doctrine/.github from 6.0.0 to 7.1.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 6.0.0 to 7.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/6.0.0...7.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-16 06:51:45 +00:00
Claudio Zizza
7b9c0d91f6
Create website schema validation workflow ( #11763 )
2024-12-12 23:43:08 +01:00
Grégoire Paris
53b51ae40e
Merge pull request #11613 from alexander-schranz/patch-2
...
Add missing generated option to documentation
2024-12-11 19:51:14 +01:00
Alexander Schranz
95b0f5c328
Add missing generated option
2024-12-11 11:55:34 +01:00
Benjamin Eberlei
5a220078e9
Update PR with PHP Stan by fixing some and baselining other violations.
2024-12-08 21:11:41 +01:00
Grégoire Paris
2b94ec18b9
Merge pull request #11759 from doctrine/2.20.x
...
Merge 2.20.x up into 2.21.x
2024-12-08 14:33:31 +01:00
Grégoire Paris
a15543a2ce
Merge pull request #11761 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2024-12-08 13:02:05 +01:00
Benjamin Eberlei
238fb74028
Add RawValuePropertyAccessor to see how it will look in 8.4, pre support for lazy objects.
2024-12-08 13:00:10 +01:00
Benjamin Eberlei
6ff2b130d3
Add comment to PropertyAccessor interface
2024-12-08 13:00:10 +01:00
Benjamin Eberlei
8c9bfca255
Fix wrong type, phpstan failure.
2024-12-08 13:00:10 +01:00
Benjamin Eberlei
c2a2386df9
suppress phpcs that cant be done
2024-12-08 13:00:10 +01:00
Benjamin Eberlei
2f98e11562
Remove last use of reflFields in core.
2024-12-08 13:00:10 +01:00
Benjamin Eberlei
073809cf5c
Fixup EnumPropertyAccessor::toEnum
2024-12-08 13:00:10 +01:00
Benjamin Eberlei
e82690d256
More psalm to fix the errors.
2024-12-08 13:00:07 +01:00
Benjamin Eberlei
23c31aec51
Static analysis.
2024-12-08 12:57:19 +01:00
Benjamin Eberlei
622ba2dcc7
Mark all PropertyAccessor classes @internal.
2024-12-08 12:56:39 +01:00
Benjamin Eberlei
0c1cf853fc
Address PHPStan issues.
2024-12-08 12:56:38 +01:00
Benjamin Eberlei
79d1f07fa2
Deprecate access to ClassMetadata::$reflFields.
2024-12-08 12:56:38 +01:00
Benjamin Eberlei
eba01f8d0e
Style, missing getReflectionProperties()Property() that were renamed.
2024-12-08 12:56:38 +01:00
Benjamin Eberlei
bd292481bd
Adjust test.
2024-12-08 12:56:38 +01:00
Benjamin Eberlei
fcc53b260f
Use ClassMetadata::$propertyAccessors in all places.
2024-12-08 12:56:34 +01:00
Benjamin Eberlei
7d61a1e73f
Fixes in LegacyReflectionFields.
2024-12-08 12:56:08 +01:00
Benjamin Eberlei
b3cffe2d12
Introduce LegacyReflectionFields abstraction, deriving from propertyAccessors at runtime.
2024-12-08 12:56:06 +01:00
Grégoire Paris
46c94e3729
Merge pull request #11760 from greg0ire/fix-merge-up
...
Run SA checks with PHP 8.4
2024-12-08 12:55:58 +01:00
Benjamin Eberlei
052c7d7698
Add all necessary accessors, adapting doctrine/persistence and ORM internal reflection properties. no tests.
2024-12-08 12:55:14 +01:00
Benjamin Eberlei
c2713adebc
property hooks.
2024-12-08 12:55:10 +01:00
Grégoire Paris
4e01567816
Run tests with PHP 8.4
...
This change was accidentally dropped during a merge up.
2024-12-08 12:47:41 +01:00
Grégoire Paris
51a984be3d
Merge pull request #11758 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2024-12-08 12:42:02 +01:00
Grégoire Paris
f7f3104451
Merge pull request #11755 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2024-12-08 12:16:15 +01:00
Grégoire Paris
a5c80a4c75
Provide XSD for phpcs file ( #11752 )
...
It unlocks autocompletion and validation in some IDEs.
2024-12-07 23:21:04 +01:00
Grégoire Paris
417444d4b5
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2024-12-07 22:31:38 +01:00
Grégoire Paris
6fd26a3933
Order result ( #11757 )
...
This avoids a test flakyness observed when using PostgreSQL in the CI.
2024-12-07 22:07:23 +01:00
Grégoire Paris
8ef9253999
Upgrade to PHPStan 2 ( #11756 )
...
Some calls to assert() are no longer necessary.
2024-12-07 20:42:54 +01:00
Grégoire Paris
360b80afab
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2024-12-07 16:17:12 +01:00
Grégoire Paris
2a662149f4
Merge pull request #11754 from doctrine/2.20.x
...
Merge 2.20.x up into 2.21.x
2024-12-07 15:39:29 +01:00
Grégoire Paris
0ed0be089c
Run static analysis checks on PHP 8.4 ( #11753 )
...
* Run static analysis checks on PHP 8.4
* Remove forgotten references to Psalm
* Remove invalid annotation
I do not think it achieves anything.
2024-12-07 13:36:37 +01:00
Grégoire Paris
8fb1043e96
Merge pull request #11704 from beberlei/DropPsalm-2.20
...
Drop Psalm
2024-12-07 12:43:18 +01:00
Benjamin Eberlei
fd041fbe80
Drop Psalm
2024-12-07 12:29:58 +01:00
Grégoire Paris
6007154484
Merge pull request #11746 from greg0ire/3.4.x
...
Merge 2.21.x up into 3.4.x
2024-12-04 07:52:51 +01:00
Grégoire Paris
22ce0aff37
Merge remote-tracking branch 'origin/2.21.x' into 3.4.x
2024-12-03 23:44:05 +01:00
Grégoire Paris
5d73458f0b
Merge pull request #11745 from greg0ire/3.4.x
...
Merge 3.3.x up into 3.4.x
2024-12-03 23:43:43 +01:00
Grégoire Paris
6c70d11f4e
Merge remote-tracking branch 'origin/3.3.x' into 3.4.x
2024-12-03 23:04:46 +01:00
Grégoire Paris
eadf96c879
Merge pull request #11743 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-6.0.0
...
Bump doctrine/.github from 5.3.0 to 6.0.0
2024-12-02 08:07:33 +01:00
dependabot[bot]
0d770c89d6
Bump doctrine/.github from 5.3.0 to 6.0.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 5.3.0 to 6.0.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/5.3.0...6.0.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-02 06:07:53 +00:00
Grégoire Paris
0a635c1ece
Merge pull request #11740 from doctrine/2.20.x
...
Merge 2.20.x up into 3.3.x
2024-11-28 08:53:49 +01:00
Grégoire Paris
37051d57ce
Merge pull request #11739 from doctrine/2.20.x
...
Merge 2.20.x up into 2.21.x
2024-11-28 08:23:12 +01:00
Grégoire Paris
69a4199434
Merge pull request #11738 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2024-11-28 07:54:42 +01:00
Grégoire Paris
4bda5147f3
Merge pull request #11736 from greg0ire/avoid-coverage-upload
...
Avoid coverage upload for merge up pull requests
2024-11-28 07:54:05 +01:00
Grégoire Paris
cbda7e2322
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2024-11-27 22:27:07 +01:00
Grégoire Paris
4563f2f9a7
Merge pull request #11737 from doctrine/2.20.x
...
Merge 2.20.x up into 2.21.x
2024-11-27 22:10:21 +01:00
Grégoire Paris
38c6569645
Avoid coverage upload for merge up pull requests
...
When there are no conflicts between branches, we create pull requests
where the head branch is a branch on the origin repository. That branch
points to a commit that should already have coverage information
provided by the build that happens after merging a regular pull request.
The thing is, coverage information provided by builds that happen before
merging a pull request are associated with the commit of the head
repository. This means that when merging up 1.2 into 1.3, the build
produces coverage information that is the result of a merge between 1.2
and 1.3, and associates it with 1.2, although it is run on with a
codebase that is much closer to 1.3 (and is in fact supposed to become
1.3 after the merge).
This means that when we create a merge up PR from 1.2 to anything else,
the coverage information is going to be wrong until a PR targeting 1.2
gets merged.
I do not think we need coverage about conflictless merge up PRs more
than we need accurate numbers, so I propose we disable the upload for
those instead of, say, trying to associate them with the temporary merge
commit.
2024-11-27 21:39:44 +01:00
Grégoire Paris
7c0eebe90a
Merge pull request #11733 from doctrine/dependabot/github_actions/2.20.x/doctrine/dot-github-5.3.0
...
Bump doctrine/.github from 5.2.0 to 5.3.0
2024-11-25 09:11:24 +01:00
dependabot[bot]
8784f2bce9
Bump doctrine/.github from 5.2.0 to 5.3.0
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/5.2.0...5.3.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-25 06:38:50 +00:00
Grégoire Paris
fbcac42ebd
Merge pull request #11732 from greg0ire/phpstan-lvl-7
...
Raise PHPStan level to 7
2024-11-24 23:44:33 +01:00
Grégoire Paris
619302dc9a
Raise PHPStan level to 7
...
We have a plan to drop Psalm. Before we do that, let us ensure we run
PHPStan at the level we agreed upon during the Hackathon.
2024-11-24 21:50:03 +01:00
Grégoire Paris
50d7a0f95e
Merge pull request #11727 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2024-11-23 22:01:13 +01:00
Grégoire Paris
d7f13a82ef
Merge pull request #11726 from greg0ire/use-properties-minor
...
Use properties over array keys
2024-11-23 21:41:29 +01:00
Grégoire Paris
9e1038075e
Merge pull request #11725 from greg0ire/use-properties
...
Use properties over array keys
2024-11-23 21:28:02 +01:00
Grégoire Paris
dd3604f523
Use properties over array keys
...
Using array access is deprecated.
2024-11-23 21:06:56 +01:00
Grégoire Paris
65e9f607e5
Use properties over array keys
...
Using array access is deprecated.
2024-11-23 21:05:10 +01:00
Grégoire Paris
a42134ccee
Merge pull request #11724 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2024-11-23 20:43:44 +01:00
Grégoire Paris
71e038c81d
Merge pull request #11723 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2024-11-23 19:56:58 +01:00
Grégoire Paris
91201c094a
Merge pull request #11722 from doctrine/2.20.x
...
Merge 2.20.x up into 2.21.x
2024-11-23 19:35:45 +01:00
Grégoire Paris
2ff998da0e
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2024-11-23 19:31:41 +01:00
Grégoire Paris
82e2c981da
Merge pull request #11556 from k00ni/patch-1
...
[Docs] unitofwork.rst: php => PHP
2024-11-19 13:07:44 +01:00
Konrad Abicht
8422a41423
unitofwork.rst: php => PHP
2024-11-19 13:06:17 +01:00
Grégoire Paris
58ad1d9678
Merge pull request #11709 from lyrixx/fix-event-doc
...
Fix `Events::onFlush` and `PostFlush()` documentation: events are always raised
2024-11-18 22:06:18 +01:00
Grégoire Pineau
346c49832c
Fix Events::onFlush and PostFlush() documentation: events are always raised
...
see 9e2bfa8169/src/UnitOfWork.php (L399-L413)
2024-11-18 21:51:27 +01:00
Grégoire Paris
f140651ff0
Merge pull request #11719 from greg0ire/ignore-deprecation
...
Ignore deprecation about StaticReflectionService
2024-11-18 21:50:12 +01:00
Grégoire Paris
bb5b2a3300
Ignore deprecation about StaticReflectionService
...
It is from a class that is deprecated and removed in later branches.
2024-11-18 21:46:52 +01:00
Grégoire Paris
5013d5dbef
Merge pull request #9760 from beberlei/GH-3519-UniqueDiscriminatorValues
...
[GH-3519] Deprecate passing the same class with different discriminator values.
2024-11-18 12:18:06 +01:00
Grégoire Paris
ba11851ac4
Merge pull request #11718 from doctrine/dependabot/github_actions/2.20.x/codecov/codecov-action-5
...
Bump codecov/codecov-action from 4 to 5
2024-11-18 08:42:38 +01:00
dependabot[bot]
4fbce94999
Bump codecov/codecov-action from 4 to 5
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-18 06:30:54 +00:00
Grégoire Paris
486e406236
Merge pull request #10065 from goetas/lazy-eager-collection-refresh
...
Lazy and eager collection refresh inconsistency
2024-11-14 23:43:20 +01:00
Asmir Mustafic
7d1b24f3b1
attempt a fix
2024-11-14 20:15:56 +01:00
Asmir Mustafic
43ce0bef78
lazy and eager collection refresh
2024-11-14 20:06:32 +01:00
Benjamin Eberlei
da51234d5a
[GH-3519] Deprecate passing the same class with different discriminator values.
2024-11-14 08:34:48 +01:00
Grégoire Paris
d9aa6ef6dc
Merge pull request #11716 from acasademont/patch-1
...
Add `isEmpty()` method to the Extra Lazy Associations tutorial
2024-11-14 08:03:31 +01:00
Albert Casademont
ff3ccff36a
Add isEmpty() method to the Extra Lazy Associations tutorial
...
Extra lazy support for it was added a long time ago
(see https://github.com/doctrine/orm/pull/912 ) but was never properly
documented.
2024-11-13 23:59:12 +01:00
Mohamed Attia
4b03ec7789
Refine Explanations of Doctrine orm Package Structure ( #11710 )
...
* Update architecture.rst
* Update architecture.rst
2024-11-12 00:02:38 +01:00
Joren Martens
14866461c5
[DDC-551] fix, add filter support in oneToOne relation
2024-11-07 10:48:16 +01:00
Grégoire Paris
f41dc4a503
Merge pull request #11533 from greg0ire/persistence-4-compat
...
Implement compatibility with Persistence 4
2024-11-04 12:30:26 +01:00
Grégoire Paris
81c0d599c9
Implement compatibility with Persistence 4
2024-11-04 12:15:30 +01:00
Indra Gunawan
9e2bfa8169
Run tests against PostgreSQL 17 ( #11697 )
...
* Run tests against PostgreSQL 17
* remove pgsql 15
2024-10-25 14:57:39 +02:00
Grégoire Paris
44fa8bbde8
Merge pull request #11344 from d-ph/patch-2
...
Change the lock mode in the "Aggregate Fields" cookbook (aggregate-fields.rst) article.
2024-10-24 08:55:49 +02:00
Grégoire Paris
3ca9529c32
Merge pull request #11694 from dbannik/Bug-join-sql-when-change-sqlFilter-parameters
...
BUG: When changing SQLFilter parameter, resulting SQL query is not generated correctly
2024-10-23 21:23:17 +02:00
Dzmitry Bannik
439b4dacf4
Is not correctly generated sql when changed/switched sqlFilter parameters
...
CachedPersisterContext::$selectJoinSql should be clear or regenerated when sqlFilter changed
The problem reproduce when in use fetch=EAGER and use additional sql filter on this property
2024-10-23 12:02:03 +03:00
Grégoire Paris
05f54860f7
Merge pull request #11549 from doctrine/feature/allow-overriding-cascade
...
Allow overriding association's cascade
2024-10-22 19:51:34 +02:00
Jan Nedbal
021a9cce3d
UPGRADE: mention SqlWalker deprecations in 3.3 ( #11693 )
2024-10-22 15:54:18 +02:00
Grégoire Paris
0f11a97c8e
Merge pull request #11035 from kbond/feat/lazy-first
...
Make `PersistentCollection::first()` "extra" lazy
2024-10-21 11:28:22 +02:00
Kevin Bond
c9253ef64b
feat: make PersistentCollection::first() "extra" lazy
2024-10-20 19:24:21 -04:00
Grégoire Paris
af54a1696c
Merge pull request #11692 from greg0ire/inherit-issue-templates
...
Remove config.yml
2024-10-20 12:16:44 +02:00
Grégoire Paris
4d821cb139
Remove config.yml
...
It causes the template inheritance to fail.
2024-10-20 12:15:32 +02:00
Grégoire Paris
85fc95060f
Merge pull request #11691 from greg0ire/inherit-issue-templates
...
Inherit issue templates
2024-10-20 12:15:05 +02:00
Grégoire Paris
039b03255a
Inherit issue templates
2024-10-20 11:58:56 +02:00
Benjamin Eberlei
e7efdede15
Update README.md
2024-10-18 09:13:20 +02:00
Grégoire Paris
74155c8672
Merge pull request #11688 from doctrine/3.3.x
...
Merge 3.3.x up into 3.4.x
2024-10-16 23:44:13 +02:00
Grégoire Paris
a4a15ad243
Merge pull request #11687 from doctrine/2.20.x
...
Merge 2.20.x up into 2.21.x
2024-10-16 23:37:08 +02:00
Grégoire Paris
9c0e62ad44
Merge pull request #11686 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2024-10-16 23:16:09 +02:00
Grégoire Paris
94702d14b9
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2024-10-16 23:02:36 +02:00
Grégoire Paris
5aad44cff6
Merge pull request #11685 from greg0ire/fix-merge-up
...
Remove YAML doc example
2024-10-16 23:00:52 +02:00
Grégoire Paris
182469b346
Fix copy/paste/adapt mistake ( #11684 )
...
The last step was missing.
2024-10-16 22:59:19 +02:00
Grégoire Paris
0893d8511e
Remove YAML doc example
...
It was wrongly added during a merge up
2024-10-16 22:58:27 +02:00
Grégoire Paris
e47398ecc5
Remove leftovers from Sphinx ( #11683 )
...
We use phpDocumentor/guides now, no need for this.
2024-10-16 22:08:16 +02:00
Grégoire Paris
9e884ccf1f
Merge pull request #11453 from MatteoFeltrin/allow-fqcn-in-value-attribute-of-discriminator-mapping
...
Allow classname in 'value' attribute of xml discriminator-mapping field
2024-10-16 08:06:49 +02:00
Alexander M. Turek
fac0899ef7
Tell dependabot to target 2.20.x ( #11681 )
2024-10-14 09:52:23 +02:00
Alexander M. Turek
d5c400e8d1
Remove annotations example
2024-10-14 09:32:55 +02:00
Alexander M. Turek
6648d68ddf
Merge branch '2.20.x' into 3.3.x
...
* 2.20.x:
Bump doctrine/.github from 5.1.0 to 5.2.0 (#11680 )
Psalm 5.26.1 (#11677 )
Update README (#11673 )
Fix PHPUnit deprecations
Bump doctrine/.github from 5.1.0 to 5.2.0 (#11671 )
Experiment with literalinclude
2024-10-14 09:31:18 +02:00
dependabot[bot]
982d6060a3
Bump doctrine/.github from 5.1.0 to 5.2.0 ( #11680 )
2024-10-14 08:56:04 +02:00
Grégoire Paris
013f850c76
Merge pull request #11676 from derrabus/chore/phpunit-deprecations
...
Fix PHPUnit deprecations
2024-10-14 08:17:49 +02:00
Grégoire Paris
ef4508e52f
Merge pull request #11667 from greg0ire/literalinclude
...
Experiment with literalinclude
2024-10-14 08:15:17 +02:00
Grégoire Paris
6dae89ce0d
Merge pull request #11678 from derrabus/improvement/stale
...
Close stale pull requests
2024-10-14 08:14:36 +02:00
Alexander M. Turek
f53350934f
Psalm 5.26.1 ( #11677 )
2024-10-13 22:04:07 +02:00
Alexander M. Turek
efaba02ef5
CI: Close stale pull requests
2024-10-13 21:55:29 +02:00
Grégoire Paris
4ff909044e
Update README ( #11673 )
2024-10-13 21:45:35 +02:00
Alexander M. Turek
32682aa14d
Fix PHPUnit deprecations
2024-10-13 21:17:33 +02:00
Alexander M. Turek
e9f3ca2a45
Drop DBAL 2 compat code ( #11674 )
2024-10-13 20:48:11 +02:00
Grégoire Paris
737aee7d98
Update branch metadata ( #11672 )
...
3.3.0 was just released.
2024-10-13 20:47:57 +02:00
dependabot[bot]
bd20df1043
Bump doctrine/.github from 5.1.0 to 5.2.0 ( #11671 )
2024-10-13 12:47:29 +02:00
Grégoire Paris
69958152e6
Merge pull request #11653 from beberlei/GH-8471-RevertPartialObjects2
...
[GH-8471] Undeprecate PARTIAL for objects in DQL
2024-10-12 22:07:18 +02:00
Benjamin Eberlei
cf8f5f9f93
Apply suggestions from code review
...
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2024-10-12 21:01:04 +02:00
Alexander M. Turek
60c245413d
Auto-detect values for EnumType columns ( #11666 )
2024-10-12 17:35:44 +02:00
Benjamin Eberlei
7c9b74221f
fix phpbench tests.
2024-10-12 16:31:02 +02:00
Grégoire Paris
2ec2030ab2
Experiment with literalinclude
...
I think it would be great to use literalinclude for big code snippets,
because our IDEs could warn us about issues, and it would be easily to
showcase our coding standard. Before we do that though, let us validate
that it renders as expected. I have picked a complex example where we
have a configuration block.
2024-10-12 15:46:50 +02:00
Benjamin Eberlei
c7e5605d11
Fix test
2024-10-12 15:43:46 +02:00
Benjamin Eberlei
c19afa1529
Merge 3.3.x
2024-10-12 15:42:38 +02:00
Benjamin Eberlei
516b593193
Fix phpcs
2024-10-12 15:41:31 +02:00
Benjamin Eberlei
e2b971d7c5
Merge branch '3.3.x' into GH-8471-RevertPartialObjects2
2024-10-12 15:40:18 +02:00
Grégoire Paris
19d9244a88
Merge pull request #11575 from eltharin/named_arguments
...
Allow named Arguments to be passed to Dto
2024-10-12 12:07:20 +02:00
Grégoire Paris
10a5a3ff73
Merge pull request #11665 from doctrine/3.2.x-merge-up-into-3.3.x_pbOwHc2w
...
Merge release 3.2.3 into 3.3.x
2024-10-12 11:58:33 +02:00
Benjamin Eberlei
f5fb400d0f
Address review comments.
2024-10-12 02:32:15 +02:00
Grégoire Paris
a321331c89
Merge origin/2.20.x into 3.3.x (using imerge)
2024-10-11 22:11:52 +02:00
Grégoire Paris
522863116a
Update branch metadata ( #11663 )
...
2.20.0 just got released
2024-10-11 20:23:33 +02:00
Benjamin Eberlei
5bfb744967
The MySQL/Maria EnumType added in DBAL 4.2 has a new known option "values". ( #11657 )
2024-10-11 15:29:19 +02:00
Grégoire Paris
8ed6c2234a
Merge pull request #11661 from doctrine/2.19.x
...
Merge 2.19.x up into 2.20.x
2024-10-11 13:47:24 +02:00
Grégoire Paris
ff612b9678
Merge pull request #11660 from simPod/test-method
...
test: cover all transactional methods in `EntityManagerTest::testItPreservesTheOriginalExceptionOnRollbackFailure()`
2024-10-11 13:11:31 +02:00
Simon Podlipsky
ee0d7197dd
test: cover all transactional methods in EntityManagerTest::testItPreservesTheOriginalExceptionOnRollbackFailure()
2024-10-11 13:00:52 +02:00
Matthias Pigulla
39d2136f46
Fix different first/max result values taking up query cache space ( #11188 )
...
* Add a test covering the #11112 issue
* Add new OutputWalker and SqlFinalizer interfaces
* Add a SingleSelectSqlFinalizer that can take care of adding offset/limit as well as locking mode statements to a given SQL query.
Add a FinalizedSelectExecutor that executes given, finalized SQL statements.
* In SqlWalker, split SQL query generation into the two parts that shall happen before and after the finalization phase.
Move the part that generates "pre-finalization" SQL into a dedicated method. Use a side channel in SingleSelectSqlFinalizer to access the "finalization" logic and avoid duplication.
* Fix CS violations
* Skip the GH11112 test while applying refactorings
* Avoid a Psalm complaint due to invalid (?) docblock syntax
* Establish alternate code path - queries can obtain the sql executor through the finalizer, parser knows about output walkers yielding finalizers
* Remove a possibly premature comment
* Re-enable the #11112 test
* Fix CS
* Make RootTypeWalker inherit from SqlOutputWalker so it becomes finalizer-aware
* Update QueryCacheTest, since first/max results no longer need extra cache entries
* Fix ParserResultSerializationTest by forcing the parser to produce a ParserResult of the old kind (with the executor already constructed)
* Fix WhereInWalkerTest
* Update lib/Doctrine/ORM/Query/Exec/PreparedExecutorFinalizer.php
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
* Fix tests
* Fix a Psalm complaint
* Fix a test
* Fix CS
* Make the NullSqlWalker an instance of SqlOutputWalker
* Avoid multiple cache entries caused by LimitSubqueryOutputWalker
* Fix Psalm complaints
* Fix static analysis complaints
* Remove experimental code that I committed accidentally
* Remove unnecessary baseline entry
* Make AddUnknownQueryComponentWalker subclass SqlOutputWalker
That way, we have no remaining classes in the codebase subclassing SqlWalker but not SqlOutputWalker
* Use more expressive exception classes
* Add a deprecation message
* Move SqlExecutor creation to ParserResult, to minimize public methods available on it
* Avoid keeping the SqlExecutor in the Query, since it must be generated just in time (e. g. in case Query parameters change)
* Address PHPStan complaints
* Fix tests
* Small refactorings
* Add an upgrade notice
* Small refactorings
* Update the Psalm baseline
* Add a missing namespace import
* Update Psalm baseline
* Fix CS
* Fix Psalm baseline
---------
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2024-10-10 15:15:08 +02:00
eltharin
c223b8f635
Allow named Arguments to be passed to Dto
...
Allow to change argument order or use variadic argument in dto constructor using new named keyword
2024-10-10 14:33:16 +02:00
Benjamin Eberlei
bea454eefc
[GH-8471] undeprecate partials completly ( #11647 )
...
* [GH-8471] Undeprecate all PARTIAL object usage.
2024-10-10 13:54:34 +02:00
Grégoire Paris
14f2572e4e
Merge pull request #11656 from doctrine/2.19.x
...
Merge 2.19.x up into 2.20.x
2024-10-10 13:53:05 +02:00
Grégoire Paris
c2c500077b
Merge pull request #11646 from greg0ire/finally-fix-bug
...
Run risky code in finally block
2024-10-10 11:46:49 +02:00
Grégoire Paris
6281c2b79f
Merge pull request #11655 from greg0ire/submodule-cleanup
...
Submodule cleanup
2024-10-10 11:12:12 +02:00
Grégoire Paris
bac1c17eab
Remove submodule remnant
...
This should make a warning we have in the CI go away.
> fatal: No url found for submodule path 'docs/en/_theme' in .gitmodules
2024-10-10 11:07:38 +02:00
Grégoire Paris
b6137c8911
Add guard clause
...
It maybe happen that the SQL COMMIT statement is successful, but then
something goes wrong. In that kind of case, you do not want to attempt a
rollback.
This was implemented in UnitOfWork::commit(), but for some reason not in
the similar EntityManager methods.
2024-10-10 10:58:24 +02:00
Benjamin Eberlei
da7854f586
Fix imports
2024-10-10 10:41:04 +02:00
Benjamin Eberlei
5f4ecfd1d8
Fix imports
2024-10-10 10:38:33 +02:00
Grégoire Paris
51be1b1d52
Run risky code in finally block
...
catch blocks are not supposed to fail. If you want to do something
despite an exception happening, you should do it in a finally block.
Closes #7545
2024-10-10 10:06:12 +02:00
Alexander M. Turek
5f39343bfd
Merge branch '2.20.x' into 3.3.x
...
* 2.20.x:
Remove vendor prefix of PHPDoc referencing class-string (#11643 )
Deprecate the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()` method (#11641 )
2024-10-09 22:37:30 +02:00
Benjamin Eberlei
7ef1f0a379
Phpcs fixes
2024-10-09 22:14:01 +02:00
Alexander M. Turek
488a5dd3bf
Remove vendor prefix of PHPDoc referencing class-string ( #11643 )
2024-10-09 21:58:37 +02:00
Alexander M. Turek
30795559dc
Merge branch '2.20.x' into 3.3.x
...
* 2.20.x:
Stop recommending vendor-prefixed PHPDoc (#11640 )
Let PHPStan detect deprecated usages (#11639 )
Add upgrade note about property hooks (#11636 )
Prepare PHP 8.4 support: Prevent property hooks from being used (#11628 )
Use E_ALL instead of E_ALL | E_STRICT
Add CI job for PHP 8.4
fix generating duplicate method stubs
2024-10-09 21:32:07 +02:00
Benjamin Eberlei
f71725575c
Revert undprecate PARTIAL for objects in DQL.
2024-10-09 17:34:59 +02:00
Benjamin Eberlei
4a3c7f05bf
Revert "Remove unused exception"
...
This reverts commit 689da1f251 .
2024-10-09 17:13:58 +02:00
Matthias Pigulla
896c65504d
Deprecate the \Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker() method ( #11641 )
...
We use this method only from within one of our own test cases, and I don't see how it would be useful to anybody else outside – it has to be called on the `Parser` instance which exists internally in the `Query` only.
Deprecating and removing it in 3.x allows for a slight simplification in the `Parser` there, since we do no longer need the field (it can be a local variable).
2024-10-09 16:12:41 +02:00
Matthias Pigulla
16a8f10fd2
Remove a misleading comment ( #11644 )
2024-10-09 15:37:04 +02:00
Alexander M. Turek
498de4c564
Merge branch '3.2.x' into 3.3.x
...
* 3.2.x:
PHPStan 1.12.6 (#11635 )
2024-10-09 15:06:48 +02:00
Alexander M. Turek
d80a831157
Stop recommending vendor-prefixed PHPDoc ( #11640 )
2024-10-09 14:48:42 +02:00
Alexander M. Turek
52660297ab
Let PHPStan detect deprecated usages ( #11639 )
2024-10-09 14:47:57 +02:00
Alexander M. Turek
b44774285b
Merge branch '2.19.x' into 3.2.x
...
* 2.19.x:
PHPStan 1.12.6 (#11635 )
2024-10-09 11:09:19 +02:00
Alexander M. Turek
58287bb731
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
PHPStan 1.12.6 (#11635 )
2024-10-09 11:08:42 +02:00
Alexander M. Turek
bc37f75b41
PHPStan 1.12.6 ( #11635 )
2024-10-09 11:08:02 +02:00
Grégoire Paris
8a25b264f7
Add upgrade note about property hooks ( #11636 )
...
People that might have experimented with property hooks while still
using ORM < 2.20.0 need to know that they need to remove their
experiment or upgrade to a version that explicitly supports them.
2024-10-09 11:05:58 +02:00
Benjamin Eberlei
0e48b19cd3
Prepare PHP 8.4 support: Prevent property hooks from being used ( #11628 )
...
Prevent property hooks from being used as they currently would work on external non-raw values without explicit code.
2024-10-09 10:36:21 +02:00
Grégoire Paris
d2978303f0
Merge remote-tracking branch 'origin/3.2.x' into 3.3.x
2024-10-09 10:13:04 +02:00
Grégoire Paris
109042e5af
Merge pull request #11631 from greg0ire/php84-ci
...
Add CI job for PHP 8.4
2024-10-09 09:42:08 +02:00
Grégoire Paris
08328adc6c
Use E_ALL instead of E_ALL | E_STRICT
...
E_STRICT is deprecated as of PHP 8.4
2024-10-09 09:19:32 +02:00
Grégoire Paris
191a5366b1
Merge pull request #11629 from greg0ire/3.2.x
...
Merge 2.19.x up into 3.2.x
2024-10-08 17:57:30 +02:00
Grégoire Paris
65806884b0
Add CI job for PHP 8.4
...
For now doctrine/common generates proxies that trigger deprecation, so
let us only test with lazy ghosts only.
2024-10-08 17:56:38 +02:00
Alexander M. Turek
ad80e8281a
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Replace custom directives with native option
2024-10-08 15:54:57 +02:00
Grégoire Paris
44dddb2eee
Merge remote-tracking branch 'origin/2.19.x' into 3.2.x
2024-10-08 15:37:53 +02:00
Grégoire Paris
0c0c61c51b
Merge pull request #11627 from greg0ire/no-custom-directives
...
Replace custom directives with native option
2024-10-08 15:26:44 +02:00
Grégoire Paris
cc28fed9f5
Replace custom directives with native option
2024-10-08 14:43:18 +02:00
Alexander M. Turek
2245149588
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Make nullable parameters explicit in generated entities (#11625 )
Update attributes-reference.rst
Bump doctrine/.github from 5.0.1 to 5.1.0 (#11616 )
Move orphan metadata to where it belongs
PHPStan 1.12 (#11585 )
2024-10-08 12:26:50 +02:00
Alexander M. Turek
b13564c6c0
Make nullable parameters explicit in generated entities ( #11625 )
2024-10-08 12:25:31 +02:00
Max Mustermann
91709c1275
fix generating duplicate method stubs
...
When adding the same lifecycle event callback to two or more lifecycle events, the generator will create a stub for each event resulting in fatal 'Cannot redeclare' errors. That is, only if the callback name contains uppercase letters.
2024-10-05 13:40:04 +02:00
Grégoire Paris
434b7cee2a
Merge pull request #11619 from eltharin/change_EBNF
...
add nested new in EBNF documentation
2024-10-04 18:53:50 +02:00
eltharin
7f0a181e39
add nested new in EBNF documentation
2024-10-02 09:48:08 +02:00
Grégoire Paris
d18126aac5
Merge pull request #11618 from n0099/patch-1
...
unclosed `]` in attributes-reference.rst
2024-10-01 17:27:04 +02:00
n0099
b7fd8241cf
Update attributes-reference.rst
2024-10-01 21:19:44 +08:00
dependabot[bot]
2432939e4f
Bump doctrine/.github from 5.0.1 to 5.1.0 ( #11616 )
...
Bumps [doctrine/.github](https://github.com/doctrine/.github ) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/doctrine/.github/releases )
- [Commits](https://github.com/doctrine/.github/compare/5.0.1...5.1.0 )
---
updated-dependencies:
- dependency-name: doctrine/.github
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>
2024-09-30 09:04:06 +02:00
Grégoire Paris
93ce84fa6e
Merge pull request #11614 from greg0ire/guides-as-dep
...
Guides as dev dependency
2024-09-29 09:23:14 +02:00
Grégoire Paris
1bf4603422
Merge pull request #11615 from greg0ire/move-orphan
...
Move orphan metadata to where it belongs
2024-09-29 09:22:54 +02:00
Grégoire Paris
e6961bd968
Install guides-cli as a dev requirement
...
It is better if contributors can check the docs by themselves.
2024-09-27 19:44:34 +02:00
Grégoire Paris
25d5bc5b46
Move orphan metadata to where it belongs
...
The goal here was to retain compatibility with doctrine/rst-parser,
which is no longer in use in the website.
2024-09-27 19:42:13 +02:00
Grégoire Paris
5724e6279e
Merge pull request #11596 from doctrine/3.2.x
...
Merge 3.2.x up into 3.3.x
2024-09-05 22:03:08 +02:00
Alexander M. Turek
cfc0655a1c
Fix compatibility with DBAL 4.2 ( #11592 )
2024-09-03 18:44:06 +02:00
Alexander M. Turek
6cde337777
PHPStan 1.12 ( #11585 )
2024-08-27 12:10:07 +02:00
Vincent Langlet
c6b2d89748
Precise EntityRepository::count ( #11579 )
2024-08-24 07:29:36 +02:00
Grégoire Paris
e1dc94d1c2
Merge pull request #11583 from doctrine/3.2.x-merge-up-into-3.3.x_lYlOLiIT
...
Merge release 3.2.2 into 3.3.x
2024-08-23 12:31:30 +02:00
Grégoire Paris
74ef28295a
Merge pull request #11582 from doctrine/2.19.x-merge-up-into-2.20.x_0oKsBvVN
...
Merge release 2.19.7 into 2.20.x
2024-08-23 12:29:43 +02:00
Grégoire Paris
831a1eb7d2
Merge pull request #11581 from greg0ire/3.2.x
...
Merge 2.19.x up into 3.2.x
2024-08-23 12:03:52 +02:00
Grégoire Paris
3a82b153f3
Merge remote-tracking branch 'origin/2.19.x' into 3.2.x
2024-08-23 09:07:18 +02:00
Grégoire Paris
6f93cebe6e
Merge pull request #11576 from eltharin/newnestedDto
...
Re: Re: Add support for using nested DTOs
2024-08-19 22:52:53 +02:00
eltharin
8c582a49d3
Add support for using nested DTOs
...
This feature allow use of nested new operators
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com >
Co-authored-by: Sergey Protko <fesors@gmail.com >
Co-authored-by: Łukasz Zakrzewski <contact@lzakrzewski.com >
Update docs/en/reference/dql-doctrine-query-language.rst
Co-authored-by: Claudio Zizza <859964+SenseException@users.noreply.github.com >
2024-08-19 22:36:10 +02:00
Grégoire Paris
5f1fe1587c
Merge pull request #11557 from d-ph/feature/make-count-walker-use-count-star-query-sometimes
...
Make CountWalker use COUNT(*) when $distinct is explicitly set to false (#11552 )
2024-08-19 22:31:49 +02:00
Grégoire Paris
205b2f5f20
Merge pull request #11550 from janedbal/patch-1
...
DQL custom functions: document TypedExpression
2024-08-09 22:50:14 +02:00
Jan Nedbal
3f550c19e3
DQL custom functions: document TypedExpression
...
Partially related to https://github.com/doctrine/orm/issues/11537
Co-authored-by: Claudio Zizza <859964+SenseException@users.noreply.github.com >
2024-08-06 09:16:45 +02:00
Marc Eichenseher
56cd688c4a
Remove unused $pkColumns when gathering columns ( #11560 )
2024-08-02 01:01:23 +02:00
Grégoire Paris
96546caceb
Merge pull request #11365 from beberlei/ReintroducePartialForArrayHydration
...
Reintroduce PARTIAL, but only for non-object hydration.
2024-07-24 09:28:05 +02:00
d-ph
57247ed6ca
Make CountWalker use COUNT(*) when $distinct is explicitly set to false ( #11552 )
...
This change makes CountWalker use COUNT(*) instead of
COUNT(tbl.id), when the user declared that their query
does not need to use (SELECT) DISTINCT, which is
commonly the case when there are no JOINs in the query,
or when the JOINs are only *ToOne.
Research showed that COUNT(*) allows databases to use
index(-only) scans more eagerly from any of the
indexed columns, especially when the query is using
a WHERE-condition that filters on an indexed column.
2024-07-22 10:22:51 +01:00
Grégoire Paris
12817076c3
Merge pull request #11528 from norkunas/namedparams
...
Add `createNamedParameter` to `QueryBuilder`
2024-07-11 23:53:20 +02:00
Maciej Malarz
129553da90
Allow overriding association's cascade
2024-07-11 11:50:04 +02:00
Grégoire Paris
4c2f104d42
Merge pull request #11547 from greg0ire/3.3.x
...
Merge 2.20.x up into 3.3.x
2024-07-10 09:00:45 +02:00
Grégoire Paris
ef64cf7c33
Merge remote-tracking branch 'origin/2.20.x' into 3.3.x
2024-07-10 08:57:09 +02:00
Tomas
0983d3a4af
Add createNamedParameter to QueryBuilder
2024-07-08 06:54:02 +03:00
Xesau
1fe1a6a048
Fix incorrect exception message for ManyToOne attribute in embeddable class ( #11536 )
...
When a ManyToOne attribute is encountered on an Embeddable class, the exception message reads "Attribute "Doctrine\ORM\Mapping\OneToMany" on embeddable [class] is not allowed.". This should be "Doctrine\ORM\Mapping\ManyToOne" on embeddable [class] is not allowed.".
2024-07-01 21:57:36 +02:00
Grégoire Paris
efe62e3f0b
Merge pull request #11532 from doctrine/3.2.x-merge-up-into-3.3.x_ws8Fgk2X
...
Merge release 3.2.1 into 3.3.x
2024-06-27 17:57:03 +02:00
Grégoire Paris
7d01f19667
Merge pull request #11531 from doctrine/2.19.x-merge-up-into-2.20.x_QMtlHSin
...
Merge release 2.19.6 into 2.20.x
2024-06-27 17:50:50 +02:00
Grégoire Paris
722cea6536
Merge pull request #11525 from greg0ire/3.2.x
...
Merge 2.19.x up into 3.2.x
2024-06-26 23:48:58 +02:00
Grégoire Paris
ce7d93f14d
Merge remote-tracking branch 'origin/2.19.x' into 3.2.x
2024-06-26 16:53:24 +02:00
Alexander M. Turek
a139a1b63c
Merge branch '3.2.x' into 3.3.x
...
* 3.2.x:
Fix deprecated array access usage (#11517 )
Address doctrine/persistence 3.3.3 release
Add the propoer void return type on the __load method of proxies
Remove unneeded CS rule
2024-06-21 13:32:17 +02:00
Alexander M. Turek
1153b9468c
Fix deprecated array access usage ( #11517 )
2024-06-21 13:31:45 +02:00
Grégoire Paris
d0e9177121
Merge pull request #11514 from doctrine/2.19.x
...
Merge 2.19.x up into 2.20.x
2024-06-20 22:51:33 +02:00
Grégoire Paris
428032ca7c
Merge remote-tracking branch 'origin/2.19.x' into HEAD
2024-06-20 22:18:24 +02:00
Grégoire Paris
f666aa641e
Merge pull request #11512 from greg0ire/deprecate-db-driver
...
Deprecate DatabaseDriver
2024-06-20 21:31:58 +02:00
Grégoire Paris
ca3319c2f6
Merge pull request #11511 from doctrine/stof-patch-1
...
Add the proper void return type on the __load method of proxies
2024-06-20 11:46:52 +02:00
Christophe Coevoet
c06f6b9376
Add the propoer void return type on the __load method of proxies
...
When using ghost objects, the method was leaking a `static` return type due to the way it was implemented, which is incompatible with the native return type that will be added in doctrine/persistence v4.
2024-06-20 09:08:10 +02:00
Grégoire Paris
ed53defaa1
Deprecate DatabaseDriver
...
It was used for the reverse engineering feature, which has been removed.
2024-06-19 21:59:29 +02:00
Alexander M. Turek
41cb5fbbbf
Merge branch '2.19.x' into 3.2.x
...
* 2.19.x:
Fix OneToManyPersister::deleteEntityCollection missing discriminator column/value. (GH-11500)
Skip joined entity creation for empty relation (#10889 )
ci: maintained and stable mariadb version (11.4 current lts) (#11490 )
fix(docs): use string value in `addAttribute`
Replace assertion with exception (#11489 )
Use ramsey/composer-install in PHPBench workflow
update EntityManager#transactional to EntityManager#wrapInTransaction
Fix cloning entities
Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition.
2024-06-19 12:21:35 +02:00
Alexander M. Turek
83851a9716
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Fix OneToManyPersister::deleteEntityCollection missing discriminator column/value. (GH-11500)
Skip joined entity creation for empty relation (#10889 )
ci: maintained and stable mariadb version (11.4 current lts) (#11490 )
fix(docs): use string value in `addAttribute`
Replace assertion with exception (#11489 )
Use ramsey/composer-install in PHPBench workflow
update EntityManager#transactional to EntityManager#wrapInTransaction
Fix cloning entities
Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition.
2024-06-18 14:19:19 +02:00
Alexander M. Turek
066ec1ac81
Fix upgrade guide for 2.20 ( #11504 )
2024-06-18 14:18:37 +02:00
Benjamin Eberlei
68744489f0
Undeprecate PARTIAL for array hydration. ( #11366 )
...
* Undeprecate PARTIAL for array hydration.
* note about undeprecate partial in UPGRADE.md
2024-06-18 14:15:31 +02:00
Grégoire Paris
9d4f54b9a4
Update branch metadata ( #11474 )
2024-05-24 00:25:01 +02:00
Grégoire Paris
37946d3a21
Merge pull request #11472 from nicolas-grekas/no-readonly
...
Remove readonly modifier from EntityManager
2024-05-23 16:27:52 +02:00
Nicolas Grekas
baf96cdad4
Remove readonly modifier from EntityManager
2024-05-23 14:33:01 +02:00
Alexander M. Turek
ce09c96427
Deprecate the NotSupported exception ( #11470 )
2024-05-22 21:53:12 +02:00
Alexander M. Turek
ae659fe650
Deprecate SequenceGenerator implementing Serializable ( #11468 )
2024-05-22 10:48:46 +02:00
Alexander M. Turek
0a177d5074
Merge branch '3.1.x' into 3.2.x
...
* 3.1.x:
Psalm 5.24.0 (#11467 )
PHPStan 1.11.1 (#11466 )
2024-05-21 14:24:54 +02:00
Alexander M. Turek
dbfe47b07b
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Psalm 5.24.0 (#11467 )
PHPStan 1.11.1 (#11466 )
2024-05-21 14:24:20 +02:00
Alexander M. Turek
bf3e082c00
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Psalm 5.24.0 (#11467 )
PHPStan 1.11.1 (#11466 )
Test with actual lock modes (#11465 )
Backport test for Query::setLockMode() (#11463 )
2024-05-21 14:22:18 +02:00
Alexander M. Turek
22b1f52c1c
Merge branch '3.1.x' into 3.2.x
...
* 3.1.x:
Fix failed merge (#11464 )
Test with actual lock modes (#11465 )
Backport test for Query::setLockMode() (#11463 )
Fix return type of Query::getLockMode() (#11462 )
2024-05-21 14:04:38 +02:00
Alexander M. Turek
a90ee5c495
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Test with actual lock modes (#11465 )
Backport test for Query::setLockMode() (#11463 )
2024-05-21 12:52:03 +02:00
Alexander M. Turek
11270425e5
Fix failed merge ( #11464 )
2024-05-21 12:30:56 +02:00
Alexander M. Turek
f1246d57c2
Fix return type of Query::getLockMode() ( #11462 )
...
… for DBAL 4
2024-05-21 12:30:01 +02:00
Alexander M. Turek
a14ef7c279
Merge branch '3.1.x' into 3.2.x
...
* 3.1.x:
Using an integer as discriminator value with ORM v3
Using an integer as discriminator value with ORM v3
Bump ramsey/composer-install from 2 to 3 (#11442 )
Use ramsey/composer-install in PHPBench workflow (#11444 )
Bump doctrine/.github from 3.0.0 to 5.0.1
Upgrade codecov/codecov-action
Setup Dependabot
2024-05-21 08:42:44 +02:00
Alexander M. Turek
54c29140fa
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Bump ramsey/composer-install from 2 to 3 (#11442 )
Bump doctrine/.github from 3.0.0 to 5.0.1
Upgrade codecov/codecov-action
2024-05-21 08:42:11 +02:00
Alexander M. Turek
eb49f66926
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Bump ramsey/composer-install from 2 to 3 (#11442 )
Bump doctrine/.github from 3.0.0 to 5.0.1
Upgrade codecov/codecov-action
2024-05-21 08:40:37 +02:00
MatteoFeltrin
73e30df52b
allow classname in 'value' attribute of xml discriminator-mapping field
2024-05-20 11:00:23 +02:00
Grégoire Paris
daa99f197b
Merge pull request #11456 from prohalexey/IntegerDescriminatorInInstanceOf
...
Using an integer as discriminator value with ORM v3
2024-05-17 08:19:34 +02:00
Alexey Prohorov
2b04cc2e3f
Using an integer as discriminator value with ORM v3
...
This fixes a bug that occurred when configuring integers as discriminator values and using DQL instanceOf function in the queries. Doctrine throws a type error whenever the application generates these queries.
2024-05-16 11:53:29 +03:00
Grégoire Paris
3d9af3187f
Merge pull request #11425 from prohalexey/FixForIntegerDescriminatorValue
...
Discriminator value could be an integer
2024-05-15 11:31:09 +02:00
Alexey Prohorov
e83d8a80ba
Using an integer as discriminator value with ORM v3
...
This fixes a bug that occurred when configuring integers as discriminator values. Doctrine throws a type error whenever the application generates queries.
2024-05-15 10:42:04 +03:00
Grégoire Paris
029ca611f0
Use ramsey/composer-install in PHPBench workflow ( #11444 )
...
It will handle caching for us.
2024-05-05 23:38:41 +02:00
Grégoire Paris
9e7715f678
Merge pull request #11439 from greg0ire/setup-dependabot
...
Setup Dependabot
2024-05-05 23:16:51 +02:00
Grégoire Paris
0e26e3ed50
Setup Dependabot
...
Targeting 2.19.x, since we want the updates to bubble up. Since
Dependabot has had no effect on doctrine/dbal yet, I suppose that means
that "dependabot.yml" must be present on the default branch.
2024-05-05 22:41:40 +02:00
Grégoire Paris
63315c8e4a
Merge pull request #11434 from doctrine/3.1.x-merge-up-into-3.2.x_sjLAVzN7
...
Merge release 3.1.3 into 3.2.x
2024-04-30 09:57:38 +02:00
Grégoire Paris
8ca99fdfdc
Merge pull request #11433 from greg0ire/3.1.x
...
Merge 3.0.x up into 3.1.x
2024-04-30 09:14:13 +02:00
Grégoire Paris
8b6a58fa0e
Merge pull request #11432 from doctrine/2.19.x-merge-up-into-2.20.x_IfraK93L
...
Merge release 2.19.5 into 2.20.x
2024-04-30 09:04:52 +02:00
Grégoire Paris
2d8e466636
Merge remote-tracking branch 'origin/2.19.x' into 3.1.x
2024-04-30 09:00:59 +02:00
Alexander M. Turek
97634ae6a1
Merge branch '3.1.x' into 3.2.x
...
* 3.1.x:
Revert "Merge pull request #11399 from ThomasLandauer/issue-11377" (#11415 )
Fix BIGINT validation (#11414 )
docs: update PHP version in doc
Fix fromMappingArray definition
Fix templated phpdoc return type (#11407 )
[Documentation] Merging "Query Result Formats" with "Hydration Modes"
SchemaValidator: Changing mapping of BIGINT to string|int
Fix psalm errors: remove override of template type
Update dql-doctrine-query-language.rst
Adding `NonUniqueResultException`
[Documentation] Query Result Formats
2024-04-15 16:31:08 +02:00
Alexander M. Turek
b725908c83
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Fix BIGINT validation (#11414 )
Fix templated phpdoc return type (#11407 )
[Documentation] Merging "Query Result Formats" with "Hydration Modes"
Fix psalm errors: remove override of template type
Update dql-doctrine-query-language.rst
Adding `NonUniqueResultException`
[Documentation] Query Result Formats
2024-04-15 16:26:53 +02:00
Alexander M. Turek
f79d166a4e
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Fix BIGINT validation (#11414 )
Fix templated phpdoc return type (#11407 )
[Documentation] Merging "Query Result Formats" with "Hydration Modes"
Fix psalm errors: remove override of template type
Update dql-doctrine-query-language.rst
Adding `NonUniqueResultException`
[Documentation] Query Result Formats
2024-04-15 16:20:40 +02:00
Alexander M. Turek
9c22814cfa
Revert "Merge pull request #11399 from ThomasLandauer/issue-11377" ( #11415 )
...
This reverts commit cbb6c897de , reversing
changes made to 9c56071392 .
2024-04-15 16:03:33 +02:00
Grégoire Paris
e0e55dc9c5
Merge pull request #11413 from Nayte91/doc/php-version
...
docs: update PHP version in doc
2024-04-15 14:32:58 +02:00
Nayte
010b1e0886
docs: update PHP version in doc
2024-04-15 09:46:56 +02:00
Grégoire Paris
93eb8a1bcb
Merge pull request #11408 from VincentLanglet/fix/fromMappingArray
...
Fix fromMappingArray definition
2024-04-04 00:20:16 +02:00
Vincent Langlet
1464827220
Fix fromMappingArray definition
2024-04-03 19:54:16 +02:00
Grégoire Paris
cbb6c897de
Merge pull request #11399 from ThomasLandauer/issue-11377
...
SchemaValidator: Changing mapping of BIGINT to string|int
2024-03-28 21:37:07 +01:00
Thomas Landauer
753bc16c0b
SchemaValidator: Changing mapping of BIGINT to string|int
2024-03-23 14:49:02 +01:00
Alexander M. Turek
be307edba8
Merge release 2.19.3 into 2.20.x ( #11398 )
2024-03-22 12:11:39 +01:00
Alexander M. Turek
4672d284ff
Merge branch '3.1.x' into 3.2.x
...
* 3.1.x:
Adjust PHPBench mocks
Set column length explicitly (#11393 )
Add missing import
Remove unused variable (#11391 )
Fixed proxy initialization for EnumReflectionProperty
Remove older versions from the docs (#11383 )
[Documentation] Removing "Doctrine Mapping Types" ... (#11384 )
[GH-11185] Bugfix: do not use collection batch loading for indexBy assocations. (#11380 )
Improve lazy ghost performance by avoiding self-referencing closure. (#11376 )
Remove outdated git metadata files (#11362 )
Switch join columns around, otherwise index doesnt match
Key on fk
Fix entities and mapping.
Minor code style fix in AbstractRemoteControl
Do not schedule batch loading for target classes with composite identifier.
Cleanup tests not to use model sets.
provides a test case for github issue 11154
2024-03-21 14:44:21 +01:00
Alexander M. Turek
9c56071392
Adjust PHPBench mocks
2024-03-21 12:37:52 +01:00
Alexander M. Turek
0a1988b349
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Set column length explicitly (#11393 )
Add missing import
Remove unused variable (#11391 )
[Documentation] Removing "Doctrine Mapping Types" ... (#11384 )
[GH-11185] Bugfix: do not use collection batch loading for indexBy assocations. (#11380 )
Improve lazy ghost performance by avoiding self-referencing closure. (#11376 )
2024-03-21 12:05:05 +01:00
Alexander M. Turek
083f642cfa
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
Remove unused variable (#11391 )
2024-03-21 10:33:34 +01:00
Grégoire Paris
4175edf311
Merge pull request #11387 from valkars/enum-reflection
...
Fixed proxy initialization for EnumReflectionProperty
2024-03-21 10:20:42 +01:00
Alexander M. Turek
716da7e538
Merge branch '2.19.x' into 2.20.x
...
* 2.19.x:
[Documentation] Removing "Doctrine Mapping Types" ... (#11384 )
[GH-11185] Bugfix: do not use collection batch loading for indexBy assocations. (#11380 )
Improve lazy ghost performance by avoiding self-referencing closure. (#11376 )
2024-03-21 10:12:37 +01:00
Valentin Karnauhov
67ac5a82da
Fixed proxy initialization for EnumReflectionProperty
2024-03-21 10:54:26 +02:00
Claudio Zizza
e384978e0b
Remove older versions from the docs ( #11383 )
...
To reduce Algolia operations and indexes older versions get removed
2024-03-20 23:35:25 +01:00
Grégoire Paris
55c4845d57
Merge pull request #11379 from greg0ire/3.1.x
...
Merge 2.19.x up into 3.1.x
2024-03-18 21:07:12 +01:00
Grégoire Paris
a38f473a92
Merge remote-tracking branch 'origin/2.19.x' into 3.1.x
2024-03-18 20:57:55 +01:00
Grégoire Paris
bcdc5bdaf4
Merge pull request #11378 from doctrine/2.19.x-merge-up-into-2.20.x_eyF2lMAL
...
Merge release 2.19.2 into 2.20.x
2024-03-18 20:22:04 +01:00
Grégoire Paris
69f51cc794
Merge pull request #11371 from doctrine/3.1.x
...
Merge 3.1.x up into 3.2.x
2024-03-17 10:43:23 +01:00
Grégoire Paris
7178b9d6b7
Merge pull request #11370 from greg0ire/forgotten-array-access
...
Avoid another occurrence of ArrayAccess
2024-03-17 10:42:16 +01:00
Grégoire Paris
8a14eee67a
Avoid another occurrence of ArrayAccess
2024-03-17 09:38:54 +01:00
Grégoire Paris
f9331ee2b9
Merge pull request #11369 from doctrine/3.1.x
...
Merge 3.1.x up into 3.2.x
2024-03-17 09:34:02 +01:00
Grégoire Paris
c5315f86fb
Merge pull request #11368 from greg0ire/address-deprecation
...
Avoid array access
2024-03-17 09:02:38 +01:00
Grégoire Paris
5820bb8f49
Avoid array access
...
It is deprecated.
2024-03-16 23:37:00 +01:00
Benjamin Eberlei
80278c545e
Update docs/en/reference/partial-hydration.rst
...
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr >
2024-03-16 23:36:13 +01:00
Grégoire Paris
cb05f1aadf
Merge pull request #11357 from DaDeather/11351-add-deprecation-for-obsolete-indexes-and-unique-constraint-properties-of-table-attribute
...
Deprecate obsolete and unnecessary properties from Table attribute (#11351 )
2024-03-16 23:24:55 +01:00
Grégoire Paris
ab616f1a1d
Merge pull request #11364 from doctrine/3.1.x
...
Merge 3.1.x up into 3.2.x
2024-03-16 23:24:34 +01:00
Benjamin Eberlei
90962f060a
Use id dynamically in array hydration test.
2024-03-16 22:39:38 +01:00
Benjamin Eberlei
758f0d7605
Remove Query::HINT_FORCE_PARTIAL_LOAD constant, not needed to be reintroduced.
2024-03-16 22:36:21 +01:00
Benjamin Eberlei
eb8510ff5c
Add tests for adjusted functionality.
2024-03-16 22:34:54 +01:00
Benjamin Eberlei
d5fdd676f4
Reintroduce PARTIAL, but only for non-object hydration.
2024-03-16 22:20:34 +01:00
Grégoire Paris
b0d07ffaba
Merge pull request #11363 from greg0ire/3.1.x
...
Merge 2.19.x up into 3.1.x
2024-03-16 21:48:21 +01:00
Grégoire Paris
196d3a6996
Merge remote-tracking branch 'origin/2.19.x' into 3.1.x
2024-03-16 21:38:16 +01:00
Grégoire Paris
a3e3a3bbf3
Merge pull request #11360 from doctrine/2.19.x-merge-up-into-2.20.x_aXnS7Xw9
...
Merge release 2.19.1 into 2.20.x
2024-03-16 21:32:18 +01:00
Ismail Özgün Turan
7d1444e5b6
Deprecate obsolete and unnecessary properties from Table attribute ( #11351 )
...
The properties `indexes` and `uniqueConstraints` were used by the
`AnnotationDriver` but were never implemented for the `AttributeDriver`.
Since the `AnnotationDriver` doesn't exist anymore these can become
deprecated and will then be removed afterwards.
2024-03-15 12:23:03 +01:00
Grégoire Paris
25d5936337
Merge pull request #11354 from greg0ire/depr--complete
...
Deprecate --complete option of orm:schema-tool:update
2024-03-15 07:42:35 +01:00
Grégoire Paris
68f9bf5dfa
Deprecate --complete option of orm:schema-tool:update
...
It achieves nothing anymore.
2024-03-14 13:14:55 +01:00
d-ph
0a49274f9b
Update aggregate-fields.rst
...
Change `PESSIMISTIC_READ` to `PESSIMISTIC_WRITE`. Otherwise, the solution to the race condition at the bottom of the article would allow concurrent reads, which would not solve the presented race condition problem.
2024-03-08 09:36:42 +00:00
Alexander M. Turek
716fc97b70
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Prepare releases 2.19 and 3.1 (#11335 )
2024-03-03 18:45:20 +01:00
Alexander M. Turek
4617a5e310
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
2024-03-03 18:03:42 +01:00
Alexander M. Turek
e77c5a3a5e
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Fix annotation
Bump CI workflows (#11336 )
Fix SchemaTool::getSchemaFromMetadata() uniqueConstraint without a predefined name (#11314 )
2024-03-03 18:03:17 +01:00
Alexander M. Turek
c3cc0fdd8c
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
Fix annotation
Bump CI workflows (#11336 )
Fix SchemaTool::getSchemaFromMetadata() uniqueConstraint without a predefined name (#11314 )
2024-03-03 17:13:16 +01:00
Alexander M. Turek
507c73c073
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Refator array_map into simple loop for performance. (#11332 )
2024-03-03 14:21:12 +01:00
Grégoire Paris
ba0ea8953b
Use class from persistence package ( #11330 )
...
* Use class from persistence package
It is meant to remove duplication between the ORM and the ODM.
* Update UPGRADE.md
Co-authored-by: Steve Todd <stodd@mashbo.com >
---------
Co-authored-by: Alexander M. Turek <me@derrabus.de >
Co-authored-by: Steve Todd <stodd@mashbo.com >
2024-03-03 13:08:37 +01:00
Alexander M. Turek
53763d432b
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
2024-03-01 10:57:47 +01:00
Alexander M. Turek
154920a0b3
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Psalm 5.22.2 (#11326 )
2024-03-01 10:56:28 +01:00
Alexander M. Turek
b8d0a85017
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
Psalm 5.22.2 (#11326 )
2024-03-01 10:51:50 +01:00
Alexander M. Turek
cb497826be
Bump Doctrine Collections to 2.2 ( #11325 )
2024-03-01 09:27:30 +01:00
Alexander M. Turek
ba0d3842a9
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Use enum_exists() for enums
2024-03-01 08:56:20 +01:00
Alexander M. Turek
bf49055a1f
Use enum_exists() for enums
2024-03-01 08:56:07 +01:00
Alexander M. Turek
29e1935c65
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Remove PHP 7 workarounds (#11324 )
2024-03-01 08:51:50 +01:00
Alexander M. Turek
694413a888
Remove PHP 7 workarounds ( #11324 )
2024-03-01 08:51:21 +01:00
Alexander M. Turek
33e02b2796
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
2024-02-29 17:17:59 +01:00
Alexander M. Turek
26f7588479
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
PHPStan 1.10.59 (#11320 )
Address deprecations from Collection 2.2 (#11315 )
Fix sql walker phpdoc
2024-02-29 17:17:42 +01:00
Alexander M. Turek
20a6efdff6
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
PHPStan 1.10.59 (#11320 )
2024-02-29 16:52:42 +01:00
Grégoire Paris
95da667862
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-02-28 22:57:35 +01:00
Grégoire Paris
c02ddd692f
Merge pull request #11312 from greg0ire/3.1.x
...
Merge 3.0.x up into 3.1.x
2024-02-26 20:53:44 +01:00
Grégoire Paris
151a3fba9d
Merge remote-tracking branch 'origin/3.0.x' into 3.1.x
2024-02-26 20:39:59 +01:00
Grégoire Paris
b187bc8588
Merge pull request #11308 from greg0ire/throw-instead-of-assert
...
Throw a full-fledged exception on invalid call
2024-02-26 20:38:49 +01:00
Grégoire Paris
1e056842fe
Merge pull request #11310 from greg0ire/3.1.x
...
Merge 2.19.x up into 3.1.x
2024-02-26 20:38:36 +01:00
Grégoire Paris
ebb0c67ecc
Merge remote-tracking branch 'origin/2.19.x' into 3.1.x
2024-02-26 08:48:34 +01:00
Grégoire Paris
3f7a3333ad
Throw a full-fledged exception on invalid call
...
In 2.x, getAssociationMappedByTargetField() used to return null when
called with the owning side of an association.
That was undocumented and wrong because the phpdoc advertises a string
as a return type.
In 6ce0cf4a3d , I wrongly assumed that
nobody would be calling this method with the owning side of an
association.
Let us throw a full fledged exception and advertise the proper way of
avoiding this situation.
Closes #11250
2024-02-25 21:49:03 +01:00
Grégoire Paris
2a8802af12
Merge pull request #11305 from doctrine/typo
...
Remove extra word
2024-02-25 13:20:55 +01:00
Grégoire Paris
9cc11d2541
Remove extra word
2024-02-25 11:20:44 +01:00
Grégoire Paris
ee5b2ce5b0
Merge pull request #11294 from greg0ire/sa-fqcn
...
Translate comment into code and annotations
2024-02-25 10:01:27 +01:00
Grégoire Paris
d54c9678d0
Deprecate passing null to ClassMetadata::fullyQualifiedClassName()
...
It can easily be avoided by the only caller.
2024-02-25 09:31:02 +01:00
Grégoire Paris
859e6af972
Translate comment into code and annotations
...
The phpdoc comment for the return type of
ClassMetadata::fullyQualifiedClassName() says that the return type will
be null if the input value is null. I have made it more precise by
using "if and only if", made the null check more strict and translated
that into template annotations. Also, since we say we return a
class-string, I've asserted that.
2024-02-24 22:13:13 +01:00
Grégoire Paris
8c3c9f115d
Merge pull request #11303 from doctrine/3.0.x
...
Merge 3.0.x up into 3.1.x
2024-02-24 21:21:41 +01:00
Grégoire Paris
3907872046
Merge pull request #11302 from greg0ire/3.0.x
...
Merge 2.18.x up into 3.0.x
2024-02-24 21:03:34 +01:00
Grégoire Paris
54cd70002c
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-02-24 20:47:36 +01:00
Alexander M. Turek
2df4d75565
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Test different ways of settings query parameters
Be less restrictive in DiscriminatorColumnMapping phpdoc (#11226 )
Allow (Array)ParameterType in QueryBuilder
2024-02-22 13:26:11 +01:00
Alexander M. Turek
dc21ab63ac
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Backport QueryParameterTest (#11288 )
2024-02-22 13:25:30 +01:00
Alexander M. Turek
2a250b5814
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
Backport QueryParameterTest (#11288 )
2024-02-22 13:23:53 +01:00
Alexander M. Turek
44fa5d340a
Merge pull request #11287 from derrabus/bugfix/parameter-types
...
Allow (Array)ParameterType in QueryBuilder
2024-02-22 09:31:34 +01:00
Alexander M. Turek
708146bbbc
Test different ways of settings query parameters
2024-02-22 09:19:39 +01:00
Vincent Langlet
a5bf9bb96a
Be less restrictive in DiscriminatorColumnMapping phpdoc ( #11226 )
...
* Be less restrictive in params
* Allow null options
* Simplify expression
* Fix ci
* Add support for null
2024-02-22 09:12:39 +01:00
Hanish Singla
3eace16e85
Allow (Array)ParameterType in QueryBuilder
2024-02-22 00:01:05 +01:00
Grégoire Paris
e4c27092cd
Merge pull request #11276 from greg0ire/no-cast-filelock
...
Remove implicit casts in FileLock.php
2024-02-21 22:59:47 +01:00
Grégoire Paris
adadf1fb90
Do not implicitly cast glob's return type
...
The comment above mentions that on some platforms, it might return
false, and this is why there is a check in the first place. Let us do
exactly what is mentioned in the comment.
2024-02-21 22:36:01 +01:00
Grégoire Paris
380b5b62ef
Do not cast file_put_contents's return type
...
If $lock->value was an empty string, this would fix a bug, but it never
is, it is a uniqid-generated string.
2024-02-21 22:35:38 +01:00
Grégoire Paris
a0e7a59572
Do not implicitly cast getLockTime()'s return type
...
This fixes a bug for files last modified on 1970-01-01 00:00:00, so… not
worth backporting IMO.
2024-02-21 22:35:38 +01:00
Grégoire Paris
fb6c0c1d8b
Do not implicitly cast getLockContent()'s return value
...
Lock files are supposed to contain uniqid()-generated values, so they
cannot be falsy strings, but if they did, this would fix a bug.
2024-02-21 22:35:36 +01:00
Alexander M. Turek
fcf1116e33
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Remove broken assertion from DateAddFunction and DateSubFunction (#11243 )
Remove unused trait
[Documentation] Adding link to Postgres upgrade article (#11257 )
fix: support array-type arg in QB variadic calls (#11242 )
2024-02-21 19:28:15 +01:00
Alexander M. Turek
78dc63df27
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Fix Static Analysis folder reference (#11281 )
docs: recommend safer way to disable logging (#11269 )
Remove unused baseline entries
Treat '0' as a legitimate trim char
Add type field mapper documentation to the sidebar
Mark document as orphan
Use correction sectionauthor syntax
Make docs valid according to guides 0.3.3 (#11252 )
2024-02-21 19:28:06 +01:00
Alexander M. Turek
bc5efd4bfe
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
Fix Static Analysis folder reference (#11281 )
docs: recommend safer way to disable logging (#11269 )
Remove unused baseline entries
Treat '0' as a legitimate trim char
2024-02-21 18:54:21 +01:00
Ondřej Mirtes
b6b4cbcb93
Remove broken assertion from DateAddFunction and DateSubFunction ( #11243 )
...
* Remove wrong asserts in DATE_ADD and DATE_SUB query AST function handlers
* Require DBAL 3.8.2
2024-02-20 20:29:56 +01:00
Grégoire Paris
b1f553eba3
Merge pull request #11272 from greg0ire/sa-attach-entity-listener
...
Improve static analysis on AttachEntityListenersListener
2024-02-20 08:14:13 +01:00
Grégoire Paris
0c4aac5a35
Merge pull request #11275 from greg0ire/sa-inversed-by
...
Account for inversedBy being a non-falsy-string or null
2024-02-20 08:13:34 +01:00
Grégoire Paris
e0081b59be
Account for inversedBy being a non-falsy-string or null
...
It is supposed to hold the name of a PHP property, and those cannot be
falsy strings.
2024-02-20 07:54:19 +01:00
Grégoire Paris
4bd574daee
Improve static analysis on AttachEntityListenersListener
...
$listenerCallback is supposed to be a method name, so it is safe to
require it is not a falsy string.
2024-02-19 09:36:41 +01:00
Grégoire Paris
d5ba106803
Merge pull request #11268 from greg0ire/3.0.x
...
Merge 2.18.x up into 3.0.x
2024-02-17 21:37:33 +01:00
Grégoire Paris
f9a4adc8ab
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-02-17 19:59:26 +01:00
Grégoire Paris
6672aaf165
Merge pull request #11265 from greg0ire/remove-unneeded-verify-depr
...
Remove unused trait
2024-02-17 14:55:10 +01:00
Grégoire Paris
aa3b331cae
Remove unused trait
2024-02-17 11:14:47 +01:00
Thomas Landauer
3918dcfb42
[Documentation] Adding link to Postgres upgrade article ( #11257 )
...
* [Documentation] Adding link to Postgres upgrade article
* Update UPGRADE.md
* Update UPGRADE.md
2024-02-15 22:12:57 +01:00
Alexander M. Turek
6290747bf9
Validate more variadic parameters ( #11261 )
2024-02-14 00:33:12 +01:00
Alexander M. Turek
b6f4220493
Throw if a variadic parameter contains unexpected named arguments ( #11260 )
2024-02-13 18:28:17 +01:00
Grégoire Paris
bfb033fe3c
Merge pull request #11256 from greg0ire/3.0.x
...
Merge 2.18.x up into 3.0.x
2024-02-13 12:07:29 +01:00
Grégoire Paris
bf86155dc2
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-02-13 11:29:26 +01:00
Simon Podlipsky
9acc70d5b8
fix: support array-type arg in QB variadic calls ( #11242 )
2024-02-09 15:23:22 +01:00
Alexander M. Turek
b7860c782b
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Remove references to deprecated constants from Lexer (#11234 )
2024-02-07 15:43:24 +01:00
Alexander M. Turek
9a24ce5fad
Merge branch '2.19.x' into 3.1.x
...
* 2.19.x:
Add TokenType class (#11228 )
2024-02-07 14:21:22 +01:00
Alexander M. Turek
9fcb8f1305
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Revert "Merge pull request #11229 from greg0ire/add-columns"
Add columns for 3.1.x and 4.0x
Update version ORM from 2 to 3 in docs (#11221 )
Clean up outdated sentence (#11224 )
Update README.md
Point link to correct upgrade guide (#11220 )
Ignore subclasses without discriminatorValue when generating discriminator column condition SQL (#11200 )
Update branches in README
2024-02-07 13:48:24 +01:00
Alexander M. Turek
5a40b99e11
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
Point link to correct upgrade guide (#11220 )
Ignore subclasses without discriminatorValue when generating discriminator column condition SQL (#11200 )
Update branches in README
2024-02-07 13:44:56 +01:00
Alexander M. Turek
94144e1227
Revert "Merge pull request #11229 from greg0ire/add-columns"
...
This reverts commit 599dd58fe1 , reversing
changes made to 1854ce2d32 .
2024-02-07 09:36:32 +01:00
Grégoire Paris
599dd58fe1
Merge pull request #11229 from greg0ire/add-columns
...
Add columns for 3.1.x and 4.0x
2024-02-07 07:56:20 +01:00
Grégoire Paris
aff543a4ff
Add columns for 3.1.x and 4.0x
2024-02-06 23:12:13 +01:00
Andrey Bolonin
1854ce2d32
Update version ORM from 2 to 3 in docs ( #11221 )
2024-02-06 07:09:30 +01:00
Benjamin Morel
b00f0c258e
Clean up outdated sentence ( #11224 )
...
The static create() method is gone in version 3
2024-02-05 22:58:19 +01:00
Grégoire Paris
13a79b068c
Merge pull request #11222 from andreybolonin/patch-3
...
Update README.md
2024-02-05 08:36:56 +01:00
Andrey Bolonin
27c9e9cab3
Update README.md
2024-02-05 09:31:22 +03:00
Alexander M. Turek
1051817d92
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Bump dependencies in the "getting started" docs page (#11219 )
DoctrineSetup was renamed to ORMSetup (#11218 )
2024-02-04 17:45:24 +01:00
Alexander M. Turek
00ed2ca991
Bump dependencies in the "getting started" docs page ( #11219 )
2024-02-04 17:40:24 +01:00
Alexander M. Turek
54b7ad2073
DoctrineSetup was renamed to ORMSetup ( #11218 )
2024-02-04 17:40:04 +01:00
Alexander M. Turek
517d038e5b
Merge branch '3.0.x' into 3.1.x
...
* 3.0.x:
Switch back to stable dependencies (#11210 )
Update branch metadata
2024-02-04 11:49:25 +01:00
Grégoire Paris
3db79ebbf3
Merge pull request #11214 from greg0ire/followup-array-access
...
Replace more occurrences of array access
2024-02-04 00:16:01 +01:00
Grégoire Paris
a2faeb9a26
Replace more occurrences of array access
...
Not sure how I missed those.
2024-02-03 23:56:59 +01:00
Grégoire Paris
3764ebf7a3
Merge pull request #11212 from greg0ire/fix-grammar
...
Follow up on array access deprecation
2024-02-03 23:50:27 +01:00
Grégoire Paris
a7d5adb3ce
Migrate more occurrences of array access
2024-02-03 23:07:27 +01:00
Grégoire Paris
6f507c322a
Fix grammar issue in upgrade guide
2024-02-03 23:01:56 +01:00
Grégoire Paris
54013671a7
Merge pull request #11211 from greg0ire/deprecate-array-access
...
Deprecate array access
2024-02-03 22:50:38 +01:00
Grégoire Paris
f5dea25b6c
Deprecate array access
...
We now have proper value objects with properties for everything we need.
2024-02-03 22:26:56 +01:00
Alexander M. Turek
7527b788de
Switch back to stable dependencies ( #11210 )
2024-02-03 21:24:40 +01:00
Grégoire Paris
e52bc846f0
Merge pull request #11209 from greg0ire/update-branch-metdata
...
Update branch metadata
2024-02-03 20:00:29 +01:00
Grégoire Paris
f259754b7c
Update branch metadata
2024-02-03 19:40:21 +01:00
Alexander M. Turek
3bc2cb6b15
Merge branch '2.19.x' into 3.0.x
...
* 2.19.x:
Update branch metadata
2024-02-03 18:45:55 +01:00
Grégoire Paris
5b8b5f28f5
Run Rector on the source code ( #11205 )
2024-02-03 17:50:09 +01:00
Grégoire Paris
2e155e98a7
Merge pull request #11202 from mpdude/mergeup-2.18.x-3.0.x
...
Merge 2.18.x up into 3.0.x
2024-02-01 17:18:17 +01:00
Matthias Pigulla
c7a91a459c
Fix Psalm complaints after merge-up
2024-02-01 09:50:15 +01:00
Matthias Pigulla
1df03f21e6
Write LimitSubqueryOutputWalkerTest in a way that is portable between DBAL 3 and 4
2024-02-01 09:40:04 +01:00
Matthias Pigulla
09f0966ad6
Fix CS after merge-up
2024-01-31 22:34:35 +01:00
Matthias Pigulla
da6c6f7045
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
...
Conflicts:
phpstan-dbal2.neon
phpstan-persistence2.neon
phpstan.neon
psalm-baseline.xml
psalm.xml
src/Persisters/Entity/BasicEntityPersister.php
src/Query/Exec/MultiTableUpdateExecutor.php
src/Utility/LockSqlHelper.php
tests/Tests/ORM/Functional/Locking/LockTest.php
tests/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2024-01-31 22:28:40 +01:00
Grégoire Paris
fd8d981f30
Merge pull request #11193 from greg0ire/3.0.x
...
Merge 2.18.x up into 3.0.x
2024-01-28 17:34:45 +01:00
Grégoire Paris
db4d00a58f
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-01-28 16:59:59 +01:00
Grégoire Paris
1a5942a4d9
Merge pull request #11165 from jwage/allow-xml-validation-disable
...
Allow XML validation to be disabled but keep it enabled by default.
2024-01-26 20:39:27 +01:00
Jonathan H. Wage
282b8fbfe8
Move expectException call before line that triggers exception (best practice)
2024-01-26 10:00:16 -06:00
Jonathan H. Wage
537a27d277
Add test verifying that xml validation disabling/enabling works as expected.
2024-01-26 09:48:08 -06:00
Jonathan H. Wage
cf7757e090
Add back check that was reverted.
2024-01-26 09:33:17 -06:00
Grégoire Paris
69cc78c259
Merge remote-tracking branch 'fork/2.18.x' into 3.0.x
2024-01-18 21:07:35 +01:00
Jonathan H. Wage
2893394673
Allow XML validation to be disabled but keep it enabled by default.
2024-01-17 13:13:39 -06:00
Grégoire Paris
8aa6a5f401
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-01-02 21:55:11 +01:00
Grégoire Paris
588d29d789
Merge pull request #11140 from greg0ire/psr-4
...
Flatten directory tree on 3.0
2024-01-02 21:54:38 +01:00
Grégoire Paris
0a3fbac8af
Flatten directory tree
...
It will make fuzzy matchers more efficient, and configuration files more
readable.
2024-01-02 20:28:37 +01:00
Grégoire Paris
1556a1ff7a
Merge pull request #11147 from greg0ire/remove-php-version-id
...
Remove irrelevant PHP version checks
2024-01-02 20:28:24 +01:00
Grégoire Paris
64e4a2129c
Remove irrelevant PHP version checks
2024-01-02 09:00:22 +01:00
Grégoire Paris
7361d3e57d
Merge remote-tracking branch 'origin/2.18.x' into 3.0.x
2024-01-02 08:57:41 +01:00
Alexander M. Turek
28d03e41f7
Merge branch '2.18.x' into 3.0.x
...
* 2.18.x:
Add compatibility with the Symfony 4.4 VarExporter (#10948 )
PHPStan 5.16.0, Symfony 7.0 (#11095 )
2023-12-01 21:58:59 +01:00
Markus Staab
f8ced51687
XmlDriver: remove dead code ( #11085 )
2023-11-25 09:16:23 +01:00
Grégoire Paris
2c06ffa4a7
Merge pull request #11071 from greg0ire/remove-wrong-assertion
...
Remove wrong assertion
2023-11-20 08:13:06 +01:00
Grégoire Paris
9a281f54de
Remove wrong assertion
...
It is useless in that particular method, and wrong.
2023-11-19 21:29:56 +01:00
Grégoire Paris
b73d44b46b
Merge pull request #11066 from doctrine/2.17.x-merge-up-into-3.0.x_45pl9AIy
...
Merge release 2.17.1 into 3.0.x
2023-11-17 08:19:27 +01:00
Grégoire Paris
b971cbeebb
Merge remote-tracking branch 'origin/2.18.x' into 2.17.x-merge-up-into-3.0.x_45pl9AIy
2023-11-17 07:38:22 +01:00
Alexander M. Turek
fcba06f64c
Merge release 2.17.0 into 3.0.x ( #11062 )
2023-11-16 00:11:38 +01:00
Alexander M. Turek
7974a92bf9
Merge remote-tracking branch 'derrabus/3.0.x' into 3.0.x
...
* derrabus/3.0.x:
Deprecate annotation classes for named queries
Fix typos
Housekeeping: Revert change to AbstractExporter, not needed without subselect fetch.
Address review comments.
Explain internals of eager loading in a bit more detail and how its configured.
1:1 and M:1 associations also use fetch batch size configuration now.
Add another testcase for DQL based fetch eager of collection.
last violation hopefully
Static analysis
Housekeeping: phpcs
Directly load many to many collections, batching not supported yet. fix tests.
Avoid new fetch mode, use this strategy with fetch=EAGER for collections.
Make sure to many assocatinos are also respecting AbstractQuery::setFetchMode
Disallow use of fetch=SUBSELECT on to-one associations.
Go through Persister API instead of indirectly through repository.
Introduce configuration option for subselect batch size.
Houskeeping: phpcs
Disallow WITH keyword on fetch joined associatiosn via subselect.
[GH-1569] Add new SUBSELECT fetch mode for OneToMany associations.
2023-11-15 23:49:44 +01:00
Alexander M. Turek
124593383b
Fix calls to removed lock methods ( #11061 )
2023-11-15 23:48:59 +01:00
Alexander M. Turek
56df970d8b
Merge branch '2.17.x' into 3.0.x
...
* 2.17.x:
Deprecate annotation classes for named queries
Fix typos
Housekeeping: Revert change to AbstractExporter, not needed without subselect fetch.
Address review comments.
Explain internals of eager loading in a bit more detail and how its configured.
1:1 and M:1 associations also use fetch batch size configuration now.
Add another testcase for DQL based fetch eager of collection.
last violation hopefully
Static analysis
Housekeeping: phpcs
Directly load many to many collections, batching not supported yet. fix tests.
Avoid new fetch mode, use this strategy with fetch=EAGER for collections.
Make sure to many assocatinos are also respecting AbstractQuery::setFetchMode
Disallow use of fetch=SUBSELECT on to-one associations.
Go through Persister API instead of indirectly through repository.
Introduce configuration option for subselect batch size.
Houskeeping: phpcs
Disallow WITH keyword on fetch joined associatiosn via subselect.
[GH-1569] Add new SUBSELECT fetch mode for OneToMany associations.
2023-11-15 21:37:34 +01:00
Grégoire Paris
21466a0524
Merge pull request #10986 from greg0ire/drop-support-for-unserializing-old-format
...
Drop support for unserializing old serialization formats
2023-11-14 08:15:19 +01:00
Grégoire Paris
010cd948c9
Drop support for unserializing old serialization formats
2023-11-11 18:44:26 +01:00
Grégoire Paris
30626ac6bb
Merge remote-tracking branch 'origin/2.17.x' into 3.0.x
2023-11-08 09:30:31 +01:00
Grégoire Paris
1f62233bf6
Merge pull request #11045 from greg0ire/dynamic-recommendation
...
Dynamically resolve AUTO to SEQUENCE or IDENTITY
2023-11-08 08:27:04 +01:00
Grégoire Paris
ffbe56779d
Remove unneeded test
...
There no longer is such a thing as recommended strategies.
2023-11-07 21:10:01 +01:00
Grégoire Paris
bdc039fe31
Dynamically resolve AUTO to SEQUENCE or IDENTITY
...
With DBAL 3.x, IDENTITY results in SERIAL.
With DBAL 4.x, it results in the standard GENERATED BY DEFAULT AS IDENTITY.
2023-11-07 20:59:44 +01:00
Grégoire Paris
73288bc472
Merge pull request #11013 from greg0ire/native-type-decl
...
Enforce native type declarations
2023-10-22 23:19:37 +02:00
Grégoire Paris
8ab0af3d30
Enforce native type declarations
...
I tried to avoid changes in tests, so as to not unnecessarily widen the
gap between 2.x and 3.x.
2023-10-22 15:45:24 +02:00
Grégoire Paris
82f4a177b2
Use native type hint for ProxyFactory::getProxy
...
This requires heavily adapting tests, because the proxy instance must:
- be an instance of InternalProxy (easy)
- be a valid entity (hard, especially for PHPUnit)
2023-10-22 15:45:24 +02:00
Grégoire Paris
1fef3196d9
Merge remote-tracking branch 'origin/2.17.x' into 3.0.x
2023-10-21 20:06:57 +02:00
Alexander M. Turek
ad519a5c6f
Prepare CI for stable DBAL 4 ( #11011 )
2023-10-16 08:41:34 +02:00
Grégoire Paris
4444065531
Remove dependency on doctrine/common ( #10998 )
...
We were only relying on it for functionality related to proxies, which
is very little code.
2023-10-15 21:30:26 +02:00
Grégoire Paris
e280b2df26
Use native return type declarations in Debug class ( #11012 )
2023-10-15 13:56:52 +02:00
Grégoire Paris
3c34265666
Merge pull request #11010 from greg0ire/3.0.x
...
Merge 2.17.x up into 3.0.x
2023-10-14 23:26:51 +02:00
Grégoire Paris
8693fa790c
Merge remote-tracking branch 'origin/2.17.x' into 3.0.x
2023-10-14 23:12:19 +02:00
Alexander M. Turek
e997c6688c
Remove schema visitors ( #11001 )
2023-10-12 20:23:35 +02:00
Grégoire Paris
03148b1300
Merge pull request #10964 from soltmar/2.16.x-update-order-of-mapping-attributes
...
Updated order of mapping attribute parameters
2023-10-11 23:04:43 +02:00
Mariusz Soltys
f47d68c826
Merge branch '3.0.x' into 2.16.x-update-order-of-mapping-attributes
2023-10-11 15:05:50 +01:00
Alexander M. Turek
06eb00d687
Fix array parameters with DBAL 4 ( #10995 )
2023-10-11 15:27:18 +02:00
Benjamin Eberlei
7827453b94
UPGRADE.md is missing two latest merges.
2023-10-11 13:48:34 +02:00
Benjamin Eberlei
6f3140a09e
Merge pull request #10994 from beberlei/3.0.x-g
...
Merge up 2.17.x to 3.0.x
2023-10-11 13:40:02 +02:00
Benjamin Eberlei
2d31d71961
Adapt tests, upgrade cs and fix static coding violations and baseline
2023-10-11 13:38:10 +02:00
Benjamin Eberlei
2db1f76dee
Rework AUTO keyword deafults to be IDENTITY always, except Oracle SEQUENCE.
2023-10-11 12:00:40 +02:00
Benjamin Eberlei
6e61571edc
Housekeeping: phpcs
2023-10-11 11:09:21 +02:00
Benjamin Eberlei
22e7c02cf7
Throw exceptions for cases where attributes are illegal on Embeddables. ( #10992 )
...
* Throw exceptions for cases where attributes are illegal on Embeddables.
* Embedded is allowed on Embeddable, update SchemaValidator.
2023-10-11 11:05:24 +02:00
Grégoire Paris
4a5f48f7ff
Merge remote-tracking branch 'origin/2.17.x' into 3.0.x
2023-10-11 11:00:55 +02:00
Grégoire Paris
5534db1810
Merge commit '07b091750' into 3.0.x
2023-10-11 10:55:09 +02:00
Grégoire Paris
18897fa7d5
Merge pull request #10985 from greg0ire/remove-partial-from-dql
2023-10-11 10:49:29 +02:00
Grégoire Paris
689da1f251
Remove unused exception
2023-10-11 10:31:35 +02:00
Grégoire Paris
5c250063b8
Remove EntityManager::getPartialReference()
2023-10-11 10:31:35 +02:00
Grégoire Paris
99fe3b5c5b
Remove partial syntax in DQL
...
It is no longer possible to use the "PARTIAL" keyword in a DQL query, or
to artificially build an AST with a partial object expression. It is
still possible to use the result set mapping API to build partial
objects.
2023-10-11 10:24:02 +02:00
Alexander M. Turek
af5c250cc8
Merge branch '2.17.x' into 3.0.x
...
* 2.17.x:
Allow creating mocks of the Query class (#10990 )
Add missing "deprecated" annotation on the annotation driver
Deprecate EntityManager*::getPartialReference()
2023-10-11 09:59:27 +02:00
Grégoire Paris
1fe0910d6b
Merge pull request #10332 from greg0ire/drop-lexer-2
2023-10-10 16:25:37 +02:00
Alexander M. Turek
2cf0c59f7a
Allow VarExporter 7 ( #10984 )
2023-10-10 12:42:04 +02:00
Mariusz Soltys
7e51a09347
Updated order of mapping attribute parameters
2023-10-10 11:15:33 +01:00
Alexander M. Turek
906e91cbb4
Merge branch '2.17.x' into 3.0.x
...
* 2.17.x:
Don't assert that BIGINTs are stored as strings (#10980 )
2023-10-10 11:36:17 +02:00
Alexander M. Turek
2aaec3a79a
Merge branch '2.17.x' into 3.0.x
...
* 2.17.x:
document Paginator::HINT_ENABLE_DISTINCT
allow to disable "DISTINCT" added to the sql query by the limit subquery walker
Test against php 8.3 (#10963 )
update checkout version to version 4
2023-10-09 17:51:53 +02:00
Grégoire Paris
4799c418c9
Merge pull request #10975 from greg0ire/void-execute-insert
2023-10-09 16:40:07 +02:00
Grégoire Paris
a1d7de6b66
Merge remote-tracking branch 'origin/2.17.x' into 3.0.x
2023-10-09 16:35:27 +02:00
Grégoire Paris
83d46d7cf9
Change EntityPersister return type
...
Calling UnitOfWork::assignPostInsertId() is now the way to go.
2023-10-09 16:13:29 +02:00
Grégoire Paris
f3b6c4b356
Use lazy ghosts unconditionally ( #10969 )
...
* Use lazy ghosts unconditionally
* Stop extending proxy factory from doctrine/common
Extending it no longer serves any purpose.
* Transform annotation into actual method
2023-10-08 23:18:35 +02:00
Grégoire Paris
343afda275
Merge pull request #10971 from greg0ire/restore-prefer-lowest
...
Restore job with --prefer-lowest
2023-10-08 18:43:53 +02:00
Grégoire Paris
27009986d7
Restore job with --prefer-lowest
...
It is useful to catch misconfigured dependency constraints. It was
removed in 413c33274d .
This implies configuring mocks so as to support psr/cache 1
psr/cache 1 does not use native return types, and phpdoc is not enough
to obtain a mock that has typed methods.
2023-10-08 13:08:16 +02:00
Grégoire Paris
e71868fe8b
Merge pull request #10968 from greg0ire/reject-id-collisions-unconditionally
...
Reject ID collisions in identity map unconditionally
2023-10-07 21:39:56 +02:00
Grégoire Paris
795e7735d8
Reject ID collisions in identity map unconditionally
2023-10-07 20:54:04 +02:00
Grégoire Paris
46ef989f38
Update reference
2023-10-06 23:55:34 +02:00
Grégoire Paris
8a4d35d5e7
Merge origin/2.17.x into 3.0.x (using imerge)
2023-10-06 23:50:53 +02:00
Grégoire Paris
faec95fed2
Merge pull request #10909 from greg0ire/imerge/continue-merge-up
...
Continue merge up
2023-10-06 21:06:54 +02:00
Grégoire Paris
c69044bc9b
Implement InternalProxy as well
2023-10-03 12:22:17 +02:00
Grégoire Paris
9a1085d72f
Merge pull request #10954 from dannyvankooten/3.0.x
2023-09-28 11:54:33 +02:00
Danny van Kooten
501226b90b
remove reference to removed yaml configuration option
2023-09-28 11:02:28 +02:00
Grégoire Paris
2c39b3f118
Remove base test case class ( #10910 )
...
We are using PHPUnit 10, so none of the polyfills in that class are
needed now.
2023-08-15 15:44:34 +02:00
Grégoire Paris
436f0467ec
imerge 'continue-merge-up': manual merge 1-1
2023-08-15 11:42:53 +02:00
Alexander M. Turek
394f6fe1b4
Merge pull request #10888 from greg0ire/partial-merge-up
...
Partial merge up of 2.17.x into 3.0.x
2023-08-08 16:38:30 +02:00
Grégoire Paris
7d9a2c0a71
Merge commit 'e78163981292075c5cc987c1b50ec7a4fad0e20e' into 3.0.x
2023-08-08 14:00:33 +02:00
Grégoire Paris
2dc19e6919
Remove outdated comment ( #10853 )
...
Since support for persistence 2 has been dropped, this method may no
longer acces an aliased class name.
Besides, providing an FQCN with a leading backslash should work since
removing it is the first thing that happens inside
AbstractClassMetadataFactory::getMetadataFor().
2023-07-25 00:31:57 +02:00
Alexander M. Turek
b68cab1b3d
Declare compatibility with DBAL 4 ( #10843 )
2023-07-17 00:30:09 +02:00
Grégoire Paris
476b68cd1f
Merge pull request #10805 from greg0ire/valid-phpunit-xml
...
Validate phpunit.xml against PHPUnit 10 schema
2023-06-27 23:52:14 +02:00
Grégoire Paris
3ffd3f6509
Validate phpunit.xml against PHPUnit 10 schema
...
The previous syntax was a PHPUnit 9 syntax.
2023-06-27 23:13:06 +02:00
Matthias Pigulla
1733bf8678
Remove remaining references to the merge() operation ( #10793 )
...
`EntityManager::merge()` has been deprecated in #8461 and removed in #9488 .
This PR removes a few remaining references and artefacts that - to my understanding - refer to it.
2023-06-27 10:27:39 +02:00
Grégoire Paris
84a87a6ac8
Merge remote-tracking branch 'origin/2.16.x' into 3.0.x
2023-06-24 11:15:42 +02:00
Grégoire Paris
6fa95b93df
Merge pull request #10778 from greg0ire/lifecycle-embedded-class
2023-06-22 10:04:53 +02:00
Grégoire Paris
2004761475
Merge pull request #10777 from greg0ire/cleanup-bc-layers
...
Turn deprecation into an exception
2023-06-21 16:23:06 +02:00
Grégoire Paris
3ad9c43a96
Merge pull request #10782 from andersonamuller/patch-2
2023-06-19 13:25:19 +02:00
Anderson Müller
1bd3066b9f
Remove missed note about deprecated drivers
2023-06-19 11:21:17 +02:00
Grégoire Paris
663763ab1a
Disallow lifecycle callbacks on embedded classes
2023-06-17 16:18:57 +02:00
Grégoire Paris
2a8f22c521
Turn deprecation into an exception
2023-06-17 15:43:12 +02:00
Grégoire Paris
efd429dd24
Merge pull request #10769 from greg0ire/cleanup-bc-layers
...
Remove Notify change tracking policy
2023-06-10 22:59:33 +02:00
Grégoire Paris
716139c168
Remove Notify change tracking policy
2023-06-07 21:16:17 +02:00
Grégoire Paris
492635a8e8
Merge pull request #10768 from greg0ire/cleanup-bc-layers
...
Enable XML validation unconditionally
2023-06-07 08:19:49 +02:00
Grégoire Paris
0dad2daf2c
Enable XML validation unconditionally
...
Note that this makes ext-dom a hard requirement when using the XML
driver.
2023-06-06 23:29:56 +02:00
Grégoire Paris
e0b72408a1
Merge pull request #10764 from greg0ire/cleanup-bc-layers
2023-06-06 11:42:14 +02:00
Grégoire Paris
575d0c03ee
Reject non instances of ORM\ClassMetadata
2023-06-06 08:49:30 +02:00
Grégoire Paris
a2a4f73b30
Enforce reporting fields where declared
2023-06-06 08:49:30 +02:00
Grégoire Paris
f1d6ba8919
Narrow types
2023-06-06 00:05:05 +02:00
Grégoire Paris
0872d1429d
Add missing upgrade notes
2023-06-05 23:43:25 +02:00
Grégoire Paris
96f5f84e8b
Merge pull request #10741 from greg0ire/cleanup-bc-layers
...
Cleanup bc layers
2023-06-05 23:26:28 +02:00
Grégoire Paris
0945f60484
Remove backward-compatibility layer
...
Note that we also remove UpdateCommandTest::testItPrintsTheSql() because
it relied on not passing --complete to work.
2023-06-05 23:08:31 +02:00
Grégoire Paris
f38922944e
Remove unneeded DeprecatedProperty rule
...
That property has been removed from 3.0.x
2023-06-05 23:08:31 +02:00
Grégoire Paris
63e9ad9e9a
Remove unneeded ignore rule
...
The linked issue has been addressed, this rules should have been removed
during a merge up, as it is no longer present on 2.x
2023-06-05 23:08:31 +02:00
Grégoire Paris
46ff264502
Merge remote-tracking branch 'origin/2.16.x' into 3.0.x
2023-06-05 09:36:36 +02:00
Grégoire Paris
8b1ce48e79
Merge pull request #10730 from greg0ire/join-column-mapping
...
Migrate to the object API of Join{Column,Table}Mapping
2023-05-31 00:28:12 +02:00
Grégoire Paris
07674b1887
Migrate to the object API of Join{Column,Table}Mapping
2023-05-30 08:52:02 +02:00
Grégoire Paris
ec43884612
Merge pull request #10729 from greg0ire/mandatory-table-name
...
Make the join table name and join column name mandatory
2023-05-30 08:43:21 +02:00
Grégoire Paris
ee62934911
Make the join column name mandatory
2023-05-28 23:28:15 +02:00
Grégoire Paris
8a6dbb4ae2
Make the join table name mandatory
...
It does not seem to ever be empty
2023-05-26 18:17:25 +02:00
Grégoire Paris
2a8a886bbe
Merge pull request #10728 from greg0ire/declare-options
...
Declare options property
2023-05-25 23:55:06 +02:00
Grégoire Paris
2b03858717
Declare options property
...
This must have been lost when merging up d7d6b9d2c7
2023-05-25 17:27:17 +02:00
Grégoire Paris
497faffe0b
Merge pull request #10723 from greg0ire/association-mapping-object-api
2023-05-25 10:30:19 +02:00
Grégoire Paris
8a762f04f1
Manually fix remaining issues
2023-05-23 13:34:39 +02:00
Grégoire Paris
bbc56aaec6
Ignore issue about collections
2023-05-23 13:34:39 +02:00
Grégoire Paris
647712649b
Add assertions
2023-05-23 13:34:39 +02:00
Grégoire Paris
61f2c4d53b
Allow ClassMetadata::FETCH_EXTRA_LAZY as a value for
...
ClassMetadata->$fetch
2023-05-23 13:34:39 +02:00
Grégoire Paris
ca8ee91467
Leverage ClassMetadataFactory::getOwningSide()
2023-05-23 13:34:38 +02:00
Grégoire Paris
2987e9956f
Add assertion
2023-05-23 13:34:38 +02:00
Grégoire Paris
917e0cff39
Move assertion
2023-05-23 13:34:38 +02:00
Grégoire Paris
6ce0cf4a3d
Add assertions based on joinColumns access
2023-05-23 13:34:37 +02:00
Grégoire Paris
d4915a8b3d
Ignore unfixable error
2023-05-23 13:34:37 +02:00
Grégoire Paris
749947efe7
Clarify things for SA
2023-05-23 13:34:37 +02:00
Grégoire Paris
535d869835
Ignore issue due to Psalm bug
2023-05-23 13:34:37 +02:00
Grégoire Paris
ea23628010
Rectorify
2023-05-23 13:34:37 +02:00
Grégoire Paris
10fa1e07b2
Merge remote-tracking branch 'origin/2.16.x' into 3.0.x
2023-05-16 17:42:44 +02:00
Grégoire Paris
c32efc2588
Merge pull request #10699 from greg0ire/narrow-down-param-type-qs
...
Narrow down parameter types for quote strategies
2023-05-16 08:20:47 +02:00
Grégoire Paris
6032a2ccf7
Use OneToManyPersister::getMapping() more
...
Not sure how I forgot these.
2023-05-15 09:27:07 +02:00
Grégoire Paris
1f9d1bf4cb
Narrow down parameter type declarations for quote strategies
2023-05-15 09:10:11 +02:00
Grégoire Paris
dff40cf351
Narrow down templated method return type
...
Maybe we do not know enough about the parameter to determine the type of
the returned relationship, but we can at least narrow it down to 3
possibilites.
2023-05-15 08:57:23 +02:00
Grégoire Paris
a55c72b47d
Merge pull request #10701 from greg0ire/convenience
...
Introduce convenience methods to narrow types
2023-05-15 08:19:05 +02:00
Grégoire Paris
f03db50be1
Merge pull request #10697 from greg0ire/narrow-down-assoc-mapping-type
...
Narrow down ClassMetadata::associationMappings type
2023-05-14 23:28:38 +02:00
Grégoire Paris
2a77776c91
Merge pull request #10700 from greg0ire/wrong-phpdoc-getdefiningclass
...
fix wrong phpdoc
2023-05-14 23:22:59 +02:00
Grégoire Paris
c51c84fc47
Introduce convenience methods to narrow types
...
These methods assert the type of the mapping provided by the collection
according to the name of the class they are in: the one to many
persister only ever deals with one to many associations, and the many to
many persister only ever deals with many to many associations.
2023-05-13 11:33:08 +02:00
Grégoire Paris
00beecce74
fix wrong phpdoc
...
The keys in the join columns array have no meaning, and are just
sequential integers.
2023-05-13 11:24:01 +02:00
Grégoire Paris
9f60fdc288
Merge pull request #10698 from greg0ire/move-join-column-fieldnames-down
...
Move joinColumnFieldNames down the class hierarchy
2023-05-12 23:22:40 +02:00
Grégoire Paris
3b88e4844a
Move joinColumnFieldNames down the class hierarchy
...
It has only meaning for ToOneOwningSideMapping
2023-05-12 21:17:20 +02:00
Grégoire Paris
63561fc382
Narrow down ClassMetadata::associationMappings type
2023-05-12 08:24:07 +02:00
Grégoire Paris
caa8041963
Merge pull request #10696 from greg0ire/templating-getowningside
...
Add templating for getOwningSide
2023-05-12 07:48:56 +02:00
Grégoire Paris
1c8b5181b5
Add templating for getOwningSide
...
It allows to remove many assertions.
2023-05-11 22:08:05 +02:00
Grégoire Paris
e5eaf9b855
Merge pull request #10688 from greg0ire/cmf-getowningassoc
...
Introduce method to get to the owning side
2023-05-09 07:42:22 +02:00
Grégoire Paris
380f8a42f3
Introduce method to get to the owning side
...
Throughout the codebase, there is this pattern where we ensure we have
the owning side of an association.
It involves accessing it from the associationMappings array. In the end,
static analysis cannot know that the association is indeed owning.
By introducing this convenience method, we make this clear, and also
delegate the complexity to the class metadata factory.
2023-05-08 17:33:15 +02:00
Grégoire Paris
05b5a64cb9
Make indexBy/orderBy easier to understand for SA ( #10687 )
...
Interfaces cannot have properties, and we do not have a concept of
sealed classes available to us without installing third party packages.
Interfaces can have methods however, which allows us to simplify calling
code.
I've been avoiding introducing getters for mapping properties because I
do not know what the performance implications are, but here, I think it
is sensible to make an exception, given the benefits.
2023-05-08 15:24:10 +02:00
Grégoire Paris
05678dcd97
Merge pull request #10681 from greg0ire/rework-class-hierarchy
...
Rework association mapping hierarchy
2023-05-07 23:49:32 +02:00
Grégoire Paris
a9c80c2293
Merge pull request #10682 from greg0ire/remove-unneeded-fields
...
Make sure unneeded fields are not present
2023-05-07 23:48:41 +02:00
Grégoire Paris
e18b80c1bf
Rework association mapping hierarchy
...
- Each type is now either final, abstract or an interface.
- The mappedBy attribute is no longer nullable and moved down the
hierarchy.
- The inversedBy attribute is still nullable and also moved down the
hierarchy.
- Code common to ManyToOneAssociationMapping and
OneToOneOwningSideMapping is de-duplicated and moved up the hierarchy
- Code inside ToManyInverseSideMapping and ToManyOwningSideMapping comes
from a trait to avoid duplication.
2023-05-07 21:04:02 +02:00
Grégoire Paris
3ddb2a845c
Make sure unneeded fields are not present
...
Instead of ensuring every mapping array has a mappedBy and an inversedBy
field, let us do the opposite, and remove them when they are null.
Likewise if there is a joinColumns field, it is useless if null or
empty.
2023-05-05 21:02:25 +02:00
Grégoire Paris
9baf213673
Merge pull request #10680 from greg0ire/3.0.x
...
Merge 2.16.x up into 3.0.x
2023-05-05 18:46:19 +02:00
Grégoire Paris
f874bc85f1
Merge remote-tracking branch 'origin/2.16.x' into 3.0.x
2023-05-05 09:32:05 +02:00
Grégoire Paris
d075f5d5f8
Merge pull request #10667 from greg0ire/throw-on-invalid-oto
...
Throw on invalid one to one
2023-05-03 23:25:34 +02:00
Grégoire Paris
fac8d84fdb
Throw on invalid one to one
...
One to one relationships are not allowed to define a join column. That
should be done on the owning side of the relationship.
2023-05-03 21:28:25 +02:00
Grégoire Paris
09680b18ee
Merge pull request #10646 from greg0ire/migrate-basic-entity-persister
...
Migrate basic entity persister to the object API of association mapping
2023-05-02 22:47:52 +02:00
Grégoire Paris
caf8d876da
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-04-26 21:43:19 +02:00
Grégoire Paris
629c600b10
Merge origin/2.15.x into 3.0.x (using imerge)
2023-04-25 22:28:05 +02:00
Grégoire Paris
7f46fad0f0
Merge pull request #10650 from greg0ire/better-comments
...
Improve named constructors' phpdoc
2023-04-24 23:36:22 +02:00
Grégoire Paris
559e1d139a
Improve named constructors' phpdoc
...
They were inconsistently documented.
2023-04-24 09:08:37 +02:00
Grégoire Paris
bd9cd989a0
Merge pull request #10649 from greg0ire/wrong-field
...
Use valid relationships
2023-04-23 22:13:53 +02:00
Grégoire Paris
f7e49a53be
Use valid relationships
...
During a recent refactoring, I had to pick a relationship type for this
piece of code, and I chose wrong, because a many-to-one cannot have a
mappedBy field.
2023-04-23 10:34:12 +02:00
Grégoire Paris
ade5559ed5
Migrate basic entity persister to the object API of association mapping
2023-04-21 22:33:44 +02:00
Grégoire Paris
c019f8649b
Merge pull request #10641 from greg0ire/move-to-1-properties-down
...
Move $(sourceToTarget|targetToSource)KeyColumns down
2023-04-20 23:20:46 +02:00
Grégoire Paris
68571184ca
Become strict about notices and warnings
...
Since PHPUnit 10, it is possible to display details when notices and
warnings happen, and to fail the test suite on notice.
failOnWarning is older than that.
2023-04-20 22:41:57 +02:00
Grégoire Paris
f171d49dc0
Move $(sourceToTarget|targetToSource)KeyColumns down
...
These properties can be made non nullable if we move them down to the 2
owning side classes that actually use them.
2023-04-20 09:11:47 +02:00
Grégoire Paris
ae88844353
Merge pull request #10638 from greg0ire/migrate-m2m
...
Migrate ManyToManyPersister to the object API of association mappings
2023-04-19 23:34:03 +02:00
Grégoire Paris
8d1d32ce81
Migrate ManyToManyPersister to the object API of association mappings
2023-04-18 21:22:22 +02:00
Grégoire Paris
01aa9a5870
Add nice assertion for PHPStan
2023-04-18 21:15:39 +02:00
Grégoire Paris
bf7ffa94cf
Merge pull request #10637 from greg0ire/move-properties-down
2023-04-18 15:01:40 +02:00
Grégoire Paris
672ff01f44
Move properties down
...
These properties only make sense for the owning side of a many-to-many
relationship.
Moving them down allows us simplify the serialization code, because the
case when these properties are empty no longer happen.
2023-04-17 22:52:04 +02:00
Grégoire Paris
fd64e137c8
Merge pull request #10636 from greg0ire/join-table-columns-down
...
Move joinTableColumns down
2023-04-17 22:22:50 +02:00
Grégoire Paris
49cc83d273
Move joinTableColumns down
...
This field only makes sense for the owning side of many-to-many
mappings. Moving it down allows us to make it non-nullable.
2023-04-17 21:45:20 +02:00
Grégoire Paris
ada109bc90
Merge pull request #10633 from greg0ire/inspect-owning-side
...
Check only owning relationships
2023-04-15 14:58:21 +02:00
Grégoire Paris
303baeea33
Merge pull request #10635 from greg0ire/convenience-methods
...
Introduce and leverage more convenience methods
2023-04-15 14:58:02 +02:00
Grégoire Paris
eeae5734a5
Merge pull request #10634 from greg0ire/wrong-comparison
...
Remove wrong comparison
2023-04-15 14:53:45 +02:00
Grégoire Paris
b6860328c0
Introduce and leverage more convenience methods
2023-04-15 14:49:32 +02:00
Grégoire Paris
3e04516740
Remove wrong comparison
...
This is a remnant of when this was done with the type and the &
operator.
2023-04-15 13:07:26 +02:00
Grégoire Paris
ec9e79a35b
Check only owning relationships
...
The inverse side does not have access to join columns / join tables.
2023-04-15 11:48:34 +02:00
Alexander M. Turek
2d3e89e2cb
Remove obsolete RequiresPhp attributes ( #10631 )
2023-04-14 23:05:11 +02:00
Grégoire Paris
727a9914f2
Merge pull request #10628 from greg0ire/discriminator-mapping-object-api
...
Migrate to DiscriminatorColumnMapping's object API
2023-04-14 22:55:47 +02:00
Grégoire Paris
5aebfefc45
Merge pull request #10629 from greg0ire/embedded-class-mapping-object-api
...
Migrate to embedded class mapping object API
2023-04-14 22:54:36 +02:00
Grégoire Paris
118eb87032
Migrate to embedded class mapping object API
2023-04-14 15:42:00 +02:00
Grégoire Paris
7df7503af6
Migrate to DiscriminatorColumnMapping's object API
...
Its array access implementation should stay for external consumers, but
should be deprecated as of Doctrine 3.1.0
2023-04-14 14:27:50 +02:00
Grégoire Paris
c49bba7a5e
Merge pull request #10617 from greg0ire/field-mapping-object-api
...
Use Rector to migrate to the object API of FieldMapping
2023-04-14 07:40:39 +02:00
Grégoire Paris
2acb298e74
Use Rector to migrate to the object API of FieldMapping
...
This makes the array access implementation of FieldMapping useful only
to consumers, it is no longer useful internally, and should be
deprecated as of Doctrine 3.1.0
2023-04-13 19:39:51 +02:00
Grégoire Paris
eaac5cd3dc
Merge pull request #10613 from greg0ire/association-mapping
...
Extract AssociationMapping in its own DTO
2023-04-13 19:32:13 +02:00
Grégoire Paris
14d615201e
Extract AssociationMapping in its own DTO
2023-04-07 08:39:19 +02:00
Grégoire Paris
545070f879
Merge pull request #10612 from doctrine/embedded-class-mapping-dto
2023-04-03 10:06:40 +02:00
Grégoire Paris
9d3ae4a55a
Extract embedded class mapping into its own DTO
2023-04-03 09:33:28 +02:00
Grégoire Paris
c213974234
Use the correct argument order for PHPUnit's assertions
2023-04-03 08:58:03 +02:00
Grégoire Paris
e22592f06b
Extract discriminator column mapping into its own DTO ( #10609 )
2023-04-02 14:19:03 +02:00
Grégoire Paris
e4a7403ead
Merge pull request #10607 from greg0ire/field-mapping-dto
...
Field mapping DTO
2023-03-31 23:34:30 +02:00
Grégoire Paris
175cdefd67
Extract FieldMapping in its own DTO
...
In the past, it has been decided to use arrays for this out of
legitimate performance concerns. But PHP has evolved, and now, it is
more performant and memory efficient to use objects.
2023-03-31 21:53:00 +02:00
Grégoire Paris
e8376b3995
Create array access implementation
...
We are going to have many DTOs, all of which will need an array access
implementation as a backward compatibility layer.
2023-03-31 09:10:38 +02:00
Grégoire Paris
b87f86e6f0
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-03-30 21:03:14 +02:00
Grégoire Paris
df7a5bc712
Merge pull request #7199 from greg0ire/inherit_base_mapping_exception
...
Inherit from homonym exception in parent package
2023-03-25 12:46:36 +01:00
Grégoire Paris
fc314a2abf
Merge pull request #10596 from doctrine/remove-comment
...
Remove contradictory comment of ORMException
2023-03-24 23:41:35 +01:00
Claudio Zizza
ebfab93d15
Remove contradictory comment
...
ORMException is an interface in 3.0 already
2023-03-24 23:22:36 +01:00
Grégoire Paris
13d8695780
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-03-23 16:08:09 +01:00
Grégoire Paris
cc72796fff
Inherit from homonym exception in parent package
...
This means that a class implementing a doctrine/persistence interface or
extending a class from that package can throw a specialized exception
that will still be caught by code in the parent package.
2023-03-22 20:02:40 +01:00
Grégoire Paris
35a29731bb
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-03-07 14:00:29 +01:00
Alexander M. Turek
7568328a6d
Forbid PHPUnit annotations ( #10567 )
2023-03-06 12:02:16 +01:00
Christopher Hertel
b904f44c6c
Convert PHPUnit annotations to attributes ( #10559 )
2023-03-06 11:14:22 +01:00
Alexander M. Turek
46ab755728
Merge 2.15.x into 3.0.x ( #10565 )
2023-03-06 09:31:33 +01:00
Alexander M. Turek
476ffd5cd8
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Skip test instead of commenting it out (#10560 )
Add missing return statements to Command:configure methods
Fix a Markdown/RST formatting glitch
Add mapping configurations for classes that were used in tests as entities, but never declared
Allow to-many associations on mapped superclasses w/ ResolveTargetEntityListener
2023-03-05 23:02:45 +01:00
Alexander M. Turek
59fb8ca571
Remove Doctrine\ORM\Proxy\Proxy interface ( #10551 )
2023-03-05 12:43:47 +01:00
Alexander M. Turek
c44e19a5e7
PHPUnit 10 ( #10492 )
2023-03-05 12:43:00 +01:00
Alexander M. Turek
b69e8e0267
Add more native types to entity manager ( #10556 )
2023-03-02 15:19:42 +01:00
Alexander M. Turek
4444a29c14
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Ignore the cache dir of PHPUnit 10 (#10546 )
Make data providers static (#10545 )
Make data providers static (#10544 )
Bump dev tools (#10541 )
Mark SqlWalker methods as not deprecated (#10540 )
docs: consistency order for docblock in association mapping (#10534 )
Correct use of PHP attribute
fix typo in faq.rst (#10526 )
fix: use executeStatement in SchemaTool (#10516 )
Write a test in a more specific way
Put up a warning sign that mapping may not be inherited from transient classes (#10392 )
Avoid unnecessary information in query hints to improve query cache hit ratio
2023-02-28 17:09:23 +01:00
Alexander M. Turek
9c2c1178e2
Stabilize DBAL version constraint ( #10542 )
2023-02-28 08:29:02 +01:00
Grégoire Paris
f98b33f764
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-02-14 00:11:12 +01:00
Grégoire Paris
759ae5678f
Merge pull request #10520 from mpdude/10470-as-exception
...
Turn deprecation from #10470 into an exception in 3.0.x
2023-02-13 23:08:48 +01:00
Matthias Pigulla
6b61e52baa
Turn deprecation from #10470 into an exception in 3.0.x
2023-02-13 20:50:42 +00:00
Grégoire Paris
21c3f4d826
Merge pull request #10517 from greg0ire/3.0.x
...
Merge 2.15.x up into 3.0.x
2023-02-12 22:13:24 +01:00
Grégoire Paris
7a7464e6d3
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-02-12 18:33:13 +01:00
Grégoire Paris
0f77181a2c
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-02-09 00:07:14 +01:00
Grégoire Paris
f86fa175df
Merge pull request #10509 from greg0ire/php8-migration
...
Migrate the rest of the source code to PHP 8 syntax
2023-02-08 20:44:15 +01:00
Grégoire Paris
f5e7ddb21c
Migrate the rest of the source code to PHP 8 syntax
2023-02-08 20:35:53 +01:00
Matthias Pigulla
7e2eb61deb
Make missing inheritance declarations a failure ( #10463 )
...
This follows up on #10431 : This kind of misconfiguration triggered a deprecation warning since 2.15.x. Now let's make it an exception.
2023-02-08 08:56:21 +01:00
Grégoire Paris
dfcb20ea1e
Merge pull request #10506 from doctrine/php8-migration
...
Migrate Parser to PHP 8
2023-02-08 00:01:25 +01:00
Grégoire Paris
ce03a61b7a
Migrate Parser to PHP 8
2023-02-07 23:35:57 +01:00
Grégoire Paris
0f25ae4b83
Merge pull request #10503 from greg0ire/php8-migration
...
Migrate ClassMetadata to PHP 8 syntax
2023-02-07 08:13:46 +01:00
Grégoire Paris
4fe224a320
Migrate ClassMetadata to PHP 8 syntax
2023-02-06 23:54:52 +01:00
Grégoire Paris
703648580a
Merge pull request #10500 from greg0ire/no-underscore-protected
...
Stop relying on underscores to indicate property visibility
2023-02-06 23:43:15 +01:00
Grégoire Paris
09caeb2753
Stop relying on underscores to indicate property visibility
...
It conflicts with our coding standard.
2023-02-06 23:27:21 +01:00
Grégoire Paris
7f9827df4f
Merge pull request #10497 from greg0ire/php8-migration
...
Migrate more classes to PHP 8 syntax
2023-02-06 23:26:22 +01:00
Grégoire Paris
941292fe85
Migrate more classes to PHP 8 syntax
2023-02-06 23:06:21 +01:00
Grégoire Paris
de8b444938
Merge pull request #10496 from greg0ire/php8-migration
...
Migrate database driver to PHP 8 syntax
2023-02-05 09:05:45 +01:00
Grégoire Paris
e8c1e6c1d3
Migrate database driver to PHP 8 syntax
2023-02-04 23:25:16 +01:00
Grégoire Paris
4ad077b3d7
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-02-04 21:33:12 +01:00
Grégoire Paris
9415275195
Merge pull request #10479 from greg0ire/php8-migration
2023-01-30 11:31:01 +01:00
Grégoire Paris
5c34678580
Migrate exec namespace to PHP 8 syntax
2023-01-29 16:44:55 +01:00
Alexander M. Turek
642a20bcff
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Psalm 5.6.0, PHPStan 1.9.14 (#10468 )
Fix some tests that were missed in #10431 (#10464 )
Remove commented-out code sections (#10465 )
2023-01-27 09:41:48 +01:00
Alexander M. Turek
4d8cf2698e
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Deprecate undeclared entity inheritance (#10431 )
Psalm 5.5.0 (#10445 )
2023-01-26 08:49:28 +01:00
Grégoire Paris
5233a139bb
Merge 01028cf3b into 3.0.x (using imerge)
2023-01-25 12:05:43 +01:00
Grégoire Paris
fbcf91d074
Merge pull request #10448 from greg0ire/php8-migration
...
Migrate ParserResult to PHP 8 syntax
2023-01-24 08:58:28 +01:00
Grégoire Paris
3d1f172788
Migrate ParserResult to PHP 8 syntax
2023-01-23 22:21:39 +01:00
Grégoire Paris
6ea4411789
Merge pull request #10440 from greg0ire/php8-migration
...
Migrate entity manager to PHP 8 syntax
2023-01-22 23:47:38 +01:00
Grégoire Paris
4357161c3d
Migrate entity manager to PHP 8 syntax
2023-01-22 15:37:38 +01:00
Grégoire Paris
3b5bd316e6
Merge pull request #10427 from greg0ire/3.0.x
...
Merge 2.15.x up into 3.0.x
2023-01-18 23:29:04 +01:00
Grégoire Paris
2d92c09101
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-01-18 23:26:21 +01:00
Grégoire Paris
4c1e520bd3
Migrate remaining exceptions to PHP 8 syntax ( #10402 )
2023-01-18 17:11:42 +01:00
Matthias Pigulla
7a08253f18
Remove "table per class" inheritance that was never actually implemented ( #10414 )
2023-01-18 16:13:26 +01:00
Grégoire Paris
e6382d393e
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-01-17 23:17:32 +01:00
Grégoire Paris
3cd65b12a8
Merge pull request #10401 from greg0ire/3.0.x
...
Merge 2.15.x up into 3.0.x
2023-01-14 11:34:19 +01:00
Grégoire Paris
d4c53a8885
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-01-14 11:14:06 +01:00
Grégoire Paris
c8b0931f9c
Merge pull request #10379 from greg0ire/remove-cmi
...
Remove ClassMetadataInfo
2023-01-13 23:18:24 +01:00
Grégoire Paris
c226b951b3
Merge pull request #10378 from greg0ire/php8-migration
...
Migrate classes with the fewest changes
2023-01-11 09:33:24 +01:00
Grégoire Paris
91b662edb6
Merge pull request #10380 from greg0ire/php8-migration-exceptions
...
Migrate exceptions to PHP 8 syntax
2023-01-10 11:04:17 +01:00
Grégoire Paris
c313440962
Migrate exceptions to PHP 8 syntax
...
Co-authored-by: Alexander M. Turek <me@derrabus.de >
Co-authored-by: Claudio Zizza <859964+SenseException@users.noreply.github.com >
2023-01-10 07:58:40 +01:00
Grégoire Paris
a86d5a799d
Migrate classes with the fewest changes
2023-01-09 09:10:17 +01:00
Alexander M. Turek
9b1f397ab2
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Use more precise types for class strings (#10381 )
PHPStan 1.9.8, Psalm 5.4.0 (#10382 )
fix typo for missing a comma (#10377 )
Docs: Removing `type: 'integer'` from mappings (#10368 )
Docs: Moving *attributes* mapping to first position (#10364 )
Docs: Deleting duplicate mapping example (#10363 )
2023-01-09 11:47:02 +07:00
Grégoire Paris
d83b1e338c
Remove ClassMetadataInfo
2023-01-07 18:38:46 +01:00
Grégoire Paris
07937b5b9a
Merge pull request #10374 from greg0ire/php8-migration
...
Migrate classes with the fewest changes to PHP 8
2023-01-07 10:59:50 +01:00
Grégoire Paris
a3db423eab
Migrate classes with the fewest changes to PHP 8
2023-01-06 23:32:22 +01:00
Grégoire Paris
2b2f4e8acc
Merge pull request #10375 from greg0ire/remove-deprecated-methods
...
Remove deprecated methods and classes
2023-01-06 23:31:24 +01:00
Grégoire Paris
84e78b8200
Remove deprecated methods and classes
...
This is a follow-up for https://github.com/doctrine/orm/pull/9876
2023-01-04 21:28:14 +01:00
Grégoire Paris
601948baaa
Merge pull request #10373 from greg0ire/3.0.x
...
Merge 2.15.x up into 3.0.x
2023-01-04 20:50:17 +01:00
Grégoire Paris
19168ca8d6
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-01-04 20:08:12 +01:00
Grégoire Paris
5e828e20cf
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2023-01-04 18:00:24 +01:00
Grégoire Paris
3a10714d6f
Merge pull request #10367 from greg0ire/php8-migration
...
Migrate files with the least changes to PHP 8
2023-01-03 23:54:44 +01:00
Grégoire Paris
7e379f6872
Migrate files with the least changes to PHP 8
...
These are the lowest hanging fruits I could find after running Rector: I
looked for files with a diff of 2 lines.
I did not include some changes that I find controversial, such as
marking some constants as final when we should maybe consider making
classes themselves final.
2023-01-03 23:20:25 +01:00
Alexander M. Turek
8b1c353650
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
PHPStan 1.9.5 (#10359 )
Drop doctrine/lexer 1
2023-01-02 23:22:27 +01:00
Grégoire Paris
75bff1d983
Drop doctrine/lexer 2
...
This allows us to have a totally typed lexer
2023-01-02 22:37:41 +01:00
Alexander M. Turek
8b35dae5a9
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Shorter deprecation message (#10357 )
Add Fully-Qualified class name in UnrecognizedField exception to ease debugging (#10342 )
Include parameter types in hydration cache key generation (#10355 )
Allow doctrine/instantiator 2 (#10351 )
2022-12-31 17:56:01 +01:00
Alexander M. Turek
9062af45ca
Fix build for DBAL 4 ( #10354 )
2022-12-31 16:18:08 +01:00
Alexander M. Turek
57f256912a
Leverage new ArrayParameterType constants ( #10352 )
2022-12-30 19:53:30 +01:00
Alexander M. Turek
b31afda33b
Modernize QueryExpressionVisitor ( #10346 )
2022-12-29 15:11:29 +01:00
Alexander M. Turek
ccb9ef7246
Merge pull request #10347 from derrabus/improvement/allow-lexer-3
...
Allow Lexer 3
2022-12-29 15:10:14 +01:00
Grégoire Paris
bdb3fc72da
Allow Lexer 3
...
Co-authored-by: Alexander M. Turek <me@derrabus.de >
2022-12-29 12:58:35 +01:00
Alexander M. Turek
8aa05b89a0
Merge branch '2.15.x' into 3.0.x
...
* 2.15.x:
Support of NOT expression from doctrine/collections ^2.1 (#10234 )
Fix Psalm errors with Collection 2.1.2 (#10343 )
Added warning about query cache in relation to parameters (#10276 )
2022-12-29 00:48:06 +01:00
Grégoire Paris
d8a2e329b6
Merge remote-tracking branch 'origin/2.15.x' into 3.0.x
2022-12-20 23:36:39 +01:00
michnovka
ad58c6a6e2
Cleanup code from PR10313 from 2.14.x ( #10326 )
2022-12-20 07:32:34 +01:00
Alexander M. Turek
8f360f08c5
Migrate Doctrine\ORM\Internal\CommitOrder to PHP 8.1 ( #10323 )
2022-12-20 07:28:33 +01:00
Grégoire Paris
2e2bca8cf8
Merge pull request #10324 from doctrine/2.14.x-merge-up-into-3.0.x_YfifaF7w
...
Merge release 2.14.0 into 3.0.x
2022-12-19 23:57:12 +01:00
Grégoire Paris
32eae38f07
Merge remote-tracking branch 'origin/2.14.x' into 2.14.x-merge-up-into-3.0.x_YfifaF7w
2022-12-19 23:32:57 +01:00
Alexander M. Turek
3a2bfce92c
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Drop forceful loading of annotations (#10321 )
Document stdClass structures used by CommitOrderCalculator (#10315 )
Psalm 5.3.0 (#10317 )
PHPStan 1.9.4 (#10318 )
add apcu enabled check if apcu extension loaded (#10310 ) (#10311 )
Add TypedFieldMapper for automatic mapping of typed PHP fields to DBAL types (#10313 )
2022-12-19 22:41:51 +01:00
Grégoire Paris
57e18d0b1b
Merge pull request #10309 from greg0ire/drop-lexer-1
...
Drop doctrine/lexer 1
2022-12-15 11:54:03 +01:00
michnovka
b3f9acd1bf
Clean-up code after PR10288 merge ( #10305 )
2022-12-15 11:50:18 +01:00
Grégoire Paris
cdc7feccc8
Drop doctrine/lexer 1
...
This allows us to introduce the TokenType enum that represents the type
of DQL tokens.
2022-12-14 22:15:20 +01:00
Grégoire Paris
275fe31c04
Merge pull request #10308 from greg0ire/3.0.x
...
Merge 2.14.x up into 3.0.x
2022-12-14 21:38:25 +01:00
Grégoire Paris
8e9ea9e9e0
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-12-14 20:52:37 +01:00
Alexander M. Turek
92a8453b92
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Add assertions about non nullability
Add support for enum discriminator columns
2022-12-14 09:29:24 +01:00
Alexander M. Turek
7fd49b7547
Remove $entityAnnotationClasses and getReader() ( #10303 )
2022-12-13 23:28:07 +01:00
Alexander M. Turek
8212ba8803
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Bump coding standard to v11 (#10295 )
PHPStan 1.9.3 (#10298 )
Rename AbstractCommandTest (#10294 )
2022-12-13 19:38:01 +01:00
Alexander M. Turek
2bfcb6e5ab
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Fix changeset computation for enum arrays (#10277 )
Psalm 5.2.0 (#10291 )
Run tools on PHP 8.2 (#10287 )
2022-12-12 14:15:47 +01:00
Alexander M. Turek
9d8cadf1fc
Remove setAccessible() calls ( #10286 )
2022-12-10 23:18:23 +01:00
Alexander M. Turek
a17809c3b9
Modernize Closure::fromCallable() calls ( #10285 )
2022-12-10 23:18:10 +01:00
Alexander M. Turek
9dbe3d003a
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Control proxy implementation via env (#10282 )
Fix association mapping with enum fields
Correct spelling errors
2022-12-10 21:55:54 +01:00
Alexander M. Turek
38c476f704
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Leverage LazyGhostTrait when possible
Fix deprecation message (#10270 )
2022-12-10 15:27:43 +01:00
Alexander M. Turek
90efde936a
Remove InExpression ( #10272 )
2022-12-06 21:46:53 +01:00
Alexander M. Turek
caaf1509bf
Drop support for Symfony 4 ( #10259 )
2022-12-06 21:46:30 +01:00
Grégoire Paris
9e578a4f0d
Migrate AST namespace to PHP 8 syntax ( #10219 )
...
* Migrate AST namespace to PHP 8 syntax
* Use typed properties when type is non-object
We know the phpdoc types in that namespace are pretty messed up, but it
should be safe to assume that's only the case when the type is an object
type.
2022-12-05 22:38:16 +01:00
Alexander M. Turek
f1c180ba50
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Add $not constructor parameter to AST classes (#10267 )
2022-12-05 12:26:48 +01:00
Grégoire Paris
8c732120bc
Use intersection types ( #10255 )
...
We could not do that before, because it would make Psalm crash.
2022-12-04 22:28:19 +01:00
Grégoire Paris
6cf69ec6d1
Merge pull request #10266 from greg0ire/3.0.x
...
Merge 2.14.x into 3.0.x
2022-12-04 09:34:22 +01:00
Grégoire Paris
67f876372c
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-12-04 00:17:19 +01:00
Alexander M. Turek
f4d658ab7e
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Bump Psalm to 5.0.0 and fix errors for Symfony 6.2 (#10261 )
Make use statements redundant
Leverage Lexer's Token type (follow up)
2022-11-30 22:10:44 +01:00
Grégoire Paris
7433c3ad47
Merge pull request #10227 from greg0ire/php8-migration-expr
...
Migrate Expr and Lexer to PHP 8 syntax
2022-11-28 08:03:39 +01:00
Grégoire Paris
4d73e3ce78
Migrate Expr and Lexer to PHP 8 syntax
2022-11-27 22:14:04 +01:00
Grégoire Paris
5afa36097a
Merge pull request #10254 from greg0ire/3.0.x
...
Merge 2.14.x up into 3.0.x
2022-11-26 15:01:01 +01:00
Grégoire Paris
afe010ed0f
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-11-26 14:52:30 +01:00
Grégoire Paris
02f3a93b71
Merge pull request #10243 from greg0ire/php8-migration-persisters
...
Migrate persisters to PHP 8 syntax
2022-11-22 21:47:05 +01:00
Grégoire Paris
e9f3a43f37
Migrate persisters to PHP 8 syntax
2022-11-21 23:49:34 +01:00
Alexander M. Turek
8c7386fea0
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Remove fragile assertions (#10239 )
update help for RunDqlCommand (#10233 )
Make the code easier to statically analyse
Widen parameter type
Document property as non-nullable
2022-11-20 21:09:46 +01:00
Grégoire Paris
d6b9da008b
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-11-11 16:34:25 +01:00
Alexander M. Turek
436142a1d8
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Add a constructor to CacheKey (#10212 )
Psalm 4.30.0, PHPStan 1.9.2 (#10213 )
Allow "Expr\Func" as condition in join (#10202 )
refactor: use list type in SchemaTool (#10199 )
2022-11-11 11:00:23 +01:00
Grégoire Paris
a8445c9661
Migrate function nodes to PHP 8 syntax ( #10214 )
2022-11-11 10:49:48 +01:00
Grégoire Paris
bfb9e16fcf
Merge pull request #10210 from greg0ire/php8-migration
...
Migrate Cache namespace to php 8
2022-11-09 00:05:11 +01:00
Grégoire Paris
3d729a768f
Stop modifying readonly properties
2022-11-08 23:58:15 +01:00
Grégoire Paris
2f1ed28f09
Migrate cache namespace to php 8
2022-11-08 23:58:15 +01:00
Grégoire Paris
ee1b78441c
Purge annotations from /lib ( #10203 )
...
* Remove file used by annotation registry
* Remove meta-annotations
They should have been removed when the annotation driver was removed.
* Remove unneeded coding standard rule exclusion
* Remove annotation documentation of indexBy
2022-11-07 12:00:28 +01:00
Grégoire Paris
2cbd674141
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-11-06 23:02:35 +01:00
michnovka
3182cceda4
EntityManager#refresh lockMode on 3.0.x ( #10196 )
2022-11-02 16:50:55 +01:00
Alexander M. Turek
71bcd64fb5
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Remove Doctrine\Persistence\ObjectManager::refresh from Psalm baseline
Add lockMode to EntityManager#refresh() (#10040 )
2022-11-02 00:49:02 +01:00
Alexander M. Turek
c2fa7282ca
Merge pull request #10192 from derrabus/remove/annotation
...
Remove the Annotation interface
2022-10-31 10:24:41 +01:00
Alexander M. Turek
373fd32b0e
Remove the Annotation interface
2022-10-31 09:50:08 +01:00
Alexander M. Turek
3865835070
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Deprecate the Annotation interface (#10178 )
Bump CI to PHP 8.2 and latest database versions (#10180 )
Remove reference to deprecated DriverChain from docs (#10179 )
2022-10-31 09:26:10 +01:00
Grégoire Paris
4be38e2dda
Remove last remnants of the YAML driver ( #10185 )
2022-10-26 23:50:26 +02:00
Alexander M. Turek
ba286de3cb
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
PHPStan 1.8.11 (#10182 )
Add isMemberOf and isInstanceOf to Expr helper list (#10104 )
Migrate more references to annotations (#10176 )
Fix grammer in working-with-objects (#10120 )
Automap events in AttachEntityListenersListener (#10122 )
Adapt use statements to the code (#10174 )
2022-10-26 12:00:57 +02:00
Alexander M. Turek
31db15f501
Remove DriverChain ( #10175 )
2022-10-26 10:15:47 +02:00
Grégoire Paris
1f15e3b198
Purge annotations from the codebase and docs ( #10177 )
2022-10-26 09:37:39 +02:00
Grégoire Paris
189883e267
Merge pull request #10113 from greg0ire/migrate-to-attributes
...
Migrate to attributes
2022-10-26 07:30:01 +02:00
Alexander M. Turek
ae6524bb2f
Bump DBAL to 3.5 and remove BC hacks ( #10173 )
2022-10-25 23:51:42 +02:00
Grégoire Paris
ef4543df33
Just a little cs fix, no big deal.
2022-10-25 23:32:47 +02:00
Grégoire Paris
d46f67bf95
Add missing ManyToOne attribute
...
The tests does not behave as expected without it.
2022-10-25 23:32:47 +02:00
Grégoire Paris
bbdbfb807c
Run Rector
...
I used the following config:
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
return function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/tests',
]);
$rectorConfig->sets([
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
]);
};
2022-10-25 23:32:47 +02:00
Grégoire Paris
29aee06e76
Remove annotations that duplicate attributes
2022-10-25 23:32:47 +02:00
Grégoire Paris
f8587c4ed7
Remove annotation driver
2022-10-25 23:32:47 +02:00
Grégoire Paris
9c7f575569
Switch to attribute driver
2022-10-25 23:12:12 +02:00
Alexander M. Turek
adceff29f1
Remove EntityManager::create() ( #10172 )
2022-10-25 16:59:19 +02:00
Alexander M. Turek
59b7fa2ebc
Fix build
2022-10-25 00:22:28 +02:00
Alexander M. Turek
94e3772221
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Deprecate EntityManager::create() (#9961 )
Address deprecation of SchemaDiff::toSaveSql()
Address deprecation of SchemaDiff::toSql()
Use error style for notifications
Fix calls to AbstractSchemaManager::createSchema() (#10165 )
Fix build with DBAL 3.5 (#10163 )
Adjust comments (#10160 )
Deprecate methods related to the annotation driver
Use correct link
Deprecate annotations
Remove trailing whitespace
Migrate more documentation towards attributes
Remove wrong sentence
Do not export phpstan stuff (#10154 )
2022-10-24 23:16:35 +02:00
Alexander M. Turek
8efcaf97eb
Add native types to annotation classes ( #10151 )
2022-10-18 09:39:12 +02:00
Alexander M. Turek
eda69c23bd
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Modernize documentation code
Add CI jobs for SQLite3 driver (#10141 )
Fix type doc blocks in annotation classes (#10145 )
Fix FieldMapping for generated key (#10144 )
Stop triggering static analysis workflows on tests
2022-10-17 23:29:39 +02:00
Alexander M. Turek
8c00c88818
Merge 2.14.x into 3.0.x ( #10140 )
2022-10-17 10:26:54 +02:00
Alexander M. Turek
99e07eb11c
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Allow doctrine/event-manager 2 (#10123 )
Psalm 4.29 (#10128 )
Address deprecation of Table::changeColumn() (#10121 )
Make code blocks consistent (#10103 )
Fix change set computation with enums (#10074 )
PHPStan 1.8.8, Psalm 4.28.0 (#10115 )
fix deprecated trigger help comment
2022-10-13 18:01:09 +02:00
Grégoire Paris
5367ce843e
Merge pull request #10084 from greg0ire/drop-collections-1
2022-10-10 14:16:46 +02:00
Grégoire Paris
55d58ddb60
Merge pull request #10117 from doctrine/2.14.x
...
Merge 2.14.x up into 3.0.x
2022-10-10 09:00:45 +02:00
Grégoire Paris
dc2bd9e412
Migrate collections to PHP 8 syntax
2022-10-09 23:29:08 +02:00
Grégoire Paris
7c17bba801
Remove SQL resultset mapping ( #10114 )
2022-10-09 22:24:18 +02:00
Grégoire Paris
0c6d3ec6e0
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-10-07 21:40:29 +02:00
Grégoire Paris
813e807ea6
Merge pull request #10112 from greg0ire/dont-instantiate-interface
...
Do not instantiate interface
2022-10-07 21:38:59 +02:00
Grégoire Paris
cfefa1e9b7
Do not instantiate interface
...
In DBAL 4.0, Doctrine\DBAL\Exception becomes an interface.
2022-10-07 21:28:57 +02:00
Grégoire Paris
426ab21b69
Merge pull request #10102 from greg0ire/address-dbal-changes
2022-10-06 10:24:21 +02:00
Grégoire Paris
f310e1f5ba
Address method rename
...
See https://github.com/doctrine/dbal/pull/5724
2022-10-06 08:57:32 +02:00
Grégoire Paris
41fd9816e8
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-10-04 23:38:17 +02:00
Grégoire Paris
5abe6a5875
Merge pull request #10083 from greg0ire/3.0.x
...
Merge 2.14.x up into 3.0.x
2022-09-30 23:07:19 +02:00
Grégoire Paris
e308b0aee1
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-09-30 20:02:02 +02:00
Grégoire Paris
38b1fee344
Merge pull request #10048 from greg0ire/php8-migration
...
Migrate QueryBuilder / ClassMetadataInfo
2022-09-27 23:45:04 +02:00
Grégoire Paris
75a7cc983c
Migrate ClassMetadataInfo to PHP 8.1
2022-09-27 08:45:54 +02:00
Grégoire Paris
d62359a009
Migrate QueryBuilder to PHP 8.1
2022-09-22 17:50:12 +02:00
Grégoire Paris
745250942f
Merge remote-tracking branch 'origin/2.14.x' into 3.0.x
2022-09-22 16:26:14 +02:00
Alexander M. Turek
f32ae29385
Add types to PersisterHelper ( #10053 )
2022-09-22 15:34:46 +02:00
Alexander M. Turek
ffd47ce2dd
Add types to mapping builders ( #10052 )
2022-09-22 11:24:05 +02:00
Alexander M. Turek
a3ec3f368f
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
PHPStan 1.8.5, Psalm 4.27.0 (#10033 )
Fix EnumType not being hydrated with HYDRATE_ARRAY (#9995 )
"Strange" return lines in documentation of inheritance-mapping.rst (#10027 )
More strange break lines in inheritance-mapping.rst (#10028 )
Add phpdoc for discriminatorColumn
2022-09-22 08:52:01 +02:00
Grégoire Paris
57054caca5
Merge pull request #10050 from greg0ire/fix-dbal-build
...
Fix dbal 4 build
2022-09-22 00:09:16 +02:00
Grégoire Paris
965de8b742
Address AbstractSchemaManager::createSchema() removal
2022-09-21 23:54:39 +02:00
Grégoire Paris
1479848714
Specify precision for decimal columns
...
doctrine/dbal 4 no longer provides a default value for that column
option.
2022-09-21 23:30:11 +02:00
Alexander M. Turek
5fe78f7892
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Bump Ubuntu version and shared workflows (#10020 )
Make paginator covariant (#10002 )
Fail gracefully if EM could not be constructed in tests (#10008 )
2022-08-31 00:01:28 +02:00
Grégoire Paris
cdd79bc764
Merge commit '8dfe8b878' into 3.0.x
2022-08-29 23:18:19 +02:00
Grégoire Paris
52b96538b7
Merge pull request #10011 from greg0ire/cs10-on-3.0
...
Upgrade to doctrine/coding-standard 10.0 on 3.0.x
2022-08-29 23:16:43 +02:00
Grégoire Paris
4aa3c630df
Address DBAL deprecations
...
- listTableDetails() has been deprecated in favor of introspectTable().
- createSchema() has been deprecated in favor of introspectSchema().
2022-08-29 23:03:28 +02:00
Grégoire Paris
883c8c443f
Update baseline
2022-08-29 22:29:28 +02:00
Grégoire Paris
1d3c6d6eb8
Adjust CPP migration
2022-08-29 22:29:28 +02:00
Grégoire Paris
4dcaa2c23b
Improve PHPDoc for WhereClause::$conditionalExpression
2022-08-29 22:29:28 +02:00
Grégoire Paris
21e142b9a5
Revert changes that cause test failures
2022-08-29 22:29:28 +02:00
Grégoire Paris
3cd2562626
Upgrade to doctrine/coding-standard 10.0
2022-08-29 22:29:28 +02:00
Alexander M. Turek
28b5dfdb84
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Bump coding standard to 9.0.2
Fix tests for doctrine/common 3.4
Fix static analysis errors for Collections 1.7
Fix type in docs (#9994 )
Improve orphan removal documentation - recommend using cascade=persist (#9848 )
2022-08-26 13:12:51 +02:00
Alexander M. Turek
41bca04103
Add types to EntityListenerResolver ( #9976 )
2022-08-08 22:02:40 +02:00
Alexander M. Turek
7abeb9bf00
Merge branch '2.14.x' into 3.0.x
...
* 2.14.x:
Backport type fixes for EntityListenerResolver (#9977 )
Undeprecate LifecycleEventArgs (#9980 )
Update documentation to not use deprecated method (#9979 )
2022-08-08 21:41:43 +02:00
Alexander M. Turek
7c4442561f
Add types to Node::dispatch() ( #9978 )
2022-08-08 21:30:51 +02:00
Alexander M. Turek
7e45006300
Update Psalm config ( #9974 )
2022-08-07 22:35:19 +02:00
Alexander M. Turek
c39cbf15be
Add types to ProxyFactory ( #9962 )
2022-08-07 21:37:36 +02:00
Alexander M. Turek
9e304fbe69
Merge 2.14.x into 3.0.x ( #9973 )
2022-08-07 20:13:52 +02:00
Alexander M. Turek
f9257cdf78
Flag QueryType as internal ( #9963 )
2022-08-07 19:22:03 +02:00
Alexander M. Turek
0e074e407a
Stabilize the DBAL dependency ( #9968 )
2022-08-07 18:42:52 +02:00
Alexander M. Turek
71cba3d1fe
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Address DBAL 3.4 deprecations (#9969 )
Improve phpdoc for ClassMetadataInfo (#9965 )
Fix build (#9964 )
fix: class normalisation test (#9966 )
Support native enum hydration when using `NEW` operator (#9936 )
2022-08-07 18:22:43 +02:00
Alexander M. Turek
23f5c016cf
Resolve QueryBuilder deprecations ( #9953 )
2022-08-04 22:51:21 +02:00
Alexander M. Turek
1a82e4a294
Drop unmaintained Symfony versions ( #9957 )
2022-08-04 08:29:29 +02:00
Alexander M. Turek
a0be22b65f
Use intersection types in tests ( #9959 )
2022-08-04 08:28:50 +02:00
Alexander M. Turek
6e5626bbff
Flag properties as readonly if possible ( #9956 )
2022-08-04 08:27:02 +02:00
Alexander M. Turek
6e6b81dcdf
Remove obsolete PHP version checks ( #9954 )
2022-08-04 00:12:00 +02:00
Alexander M. Turek
3c19eb6de2
Require PHP 8.1 ( #9925 )
2022-08-03 23:01:41 +02:00
Alexander M. Turek
309e48ad54
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Deprecate QueryBuilder APIs exposing its internal state (#9945 )
Update branch info in README and .doctrine-project.json (#9943 )
Psalm 4.25.0, PHPStan 1.8.2 (#9941 )
Stop passing event manager to constructor (#9938 )
Use a more precise phpdoc for ClassMetadataInfo::versionField than mixed (#9937 )
Make EntityManager `@final` and its constructor public
2022-08-03 22:48:03 +02:00
Alexander M. Turek
ef82567730
Fix DBAL 4 compatibility ( #9950 )
2022-08-03 17:05:42 +02:00
Grégoire Paris
61cc67e4b7
Merge pull request #9940 from greg0ire/php8-migration
...
Migrate UnitOfWork to PHP 8
2022-07-28 18:40:56 +02:00
Grégoire Paris
0c2d1df424
Migrate Configuration class to PHP 8 again
2022-07-28 17:06:29 +02:00
Grégoire Paris
35afdb1c84
Migrate UnitOfWork to PHP 8
2022-07-28 16:16:49 +02:00
Alexander M. Turek
a3a8caae51
Split TreeWalker and SqlWalker ( #9551 )
2022-07-25 22:27:45 +02:00
Alexander M. Turek
5830736537
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Add helper function TreeWalkerAdapter::getMetadataForDqlAlias() (#9932 )
Simplify LanguageRecognitionTest (#9930 )
test/added test for foreign keys with custom id object types
Widen types for DiscriminatorMap (#9922 )
schema tool: remove useless text from --dump-sql output
Update IdentifierFlattener.php
Update IdentifierFlattener.php
2022-07-25 20:59:42 +02:00
Alexander M. Turek
0bfdbe1e2c
Add native types to QuoteStrategy classes ( #9923 )
2022-07-21 10:16:31 +02:00
Alexander M. Turek
d41c4c6cc6
Adjust casing of SQLitePlatform for DBAL 4 ( #9924 )
2022-07-20 22:14:27 +00:00
Grégoire Paris
2550417804
Merge pull request #9900 from greg0ire/php8-migration
...
Migrate part of the tools namespace to PHP8 syntax
2022-07-19 20:17:46 +02:00
Grégoire Paris
c44db2cc35
Fulfill ReturnTypeWillChange prophecy
2022-07-19 08:45:48 +02:00
Grégoire Paris
660cb3b6ac
Migrate part of the tools namespace to PHP 8 syntax
2022-07-19 08:43:30 +02:00
Grégoire Paris
ad12df8fcc
Remove unused exception
2022-07-19 08:43:30 +02:00
Grégoire Paris
b7ff742f84
Throw on error
...
That way we have some level of error handling, and don't muddy the
return type.
2022-07-19 08:43:29 +02:00
Grégoire Paris
220bfa1da5
Merge pull request #9911 from craigfrancis/3.0.x
...
Show Expr::countDistinct() and Expr::concat() use variable-length argument lists
2022-07-18 23:36:00 +02:00
Grégoire Paris
80188edbdd
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-07-18 23:06:06 +02:00
Craig Francis
0f98b3d9f2
Update Expr::countDistinct() and Expr::concat() to variable-length argument lists
2022-07-18 21:05:20 +01:00
Grégoire Paris
0b9fb97557
Merge pull request #9851 from greg0ire/php8-migration
...
Migrate more code to PHP8
2022-07-14 19:49:14 +02:00
Grégoire Paris
214a912b37
Migrate more code to PHP8
2022-07-14 19:26:22 +02:00
Grégoire Paris
990a1fe952
Merge pull request #9885 from greg0ire/fix-build
2022-07-13 12:10:19 +02:00
Grégoire Paris
1ac9d52332
Ignore errors caused by nullable assets filter
2022-07-12 20:24:19 +02:00
Grégoire Paris
1fa1e7072b
Address removal/deprecation of ArrayType/ObjectType
2022-07-12 20:24:19 +02:00
Grégoire Paris
68dc5fe901
Rely on platform options
...
Custom schema options have been removed in doctrine/dbal 4
2022-07-12 20:24:19 +02:00
Grégoire Paris
db9c43feea
Merge remote-tracking branch 'origin/2.13.x' into fix-build
2022-07-12 20:24:16 +02:00
Alexander M. Turek
9e0c7de24e
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Psalm 4.24.0, PHPStan 1.7.15 (#9865 )
PHP CodeSniffer 3.7.1, PHPStan 1.7.14 (#9858 )
2022-06-28 15:42:44 +02:00
Alexander M. Turek
07fa660a47
Fix broken mocks due to removal of Driver::getSchemaManager() ( #9869 )
2022-06-28 15:30:59 +02:00
Grégoire Paris
734a1c63a2
Merge pull request #9852 from MarcBrillault/internal-php8
...
Migrate Internal namespace to PHP8
2022-06-18 21:40:27 +02:00
Marc Brillault
e22f02f198
Migrate Internal namespace to PHP8
2022-06-17 19:20:57 +02:00
Alexander M. Turek
318e6ec067
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Deprecate omitting the alias in QueryBuilder (#9765 )
Run tests on PHP 8.2 (#9840 )
PHPStan 1.7.13 (#9844 )
Flip conditional extension of legacy AnnotationDriver class (#9843 )
PHP CodeSniffer 3.7 (#9842 )
Make Reflection available to ConvertMappingCommand (#9619 )
Add missing property declaration
Use proper API for introspection of tables
2022-06-17 10:42:13 +02:00
Grégoire Paris
af1303ec96
Merge pull request #9835 from greg0ire/php8-configuration
...
Migrate Configuration to PHP 8 syntax
2022-06-15 07:33:19 +02:00
Grégoire Paris
5ecf9e9202
update psalm baseline
2022-06-14 15:03:06 +02:00
Grégoire Paris
d52f9ee87e
Migrate Configuration to PHP 8 syntax
2022-06-14 15:01:25 +02:00
Grégoire Paris
78c9490212
Merge pull request #9838 from greg0ire/remove-identity-columns-emulation
...
Stop allowing identity columns emulation
2022-06-11 18:10:45 +02:00
Grégoire Paris
2d230ce033
Stop allowing identity columns emulation
...
That feature has been deprecated.
2022-06-10 21:14:10 +02:00
Grégoire Paris
894dc4fc8f
Merge pull request #9836 from greg0ire/3.0.x
...
Merge 2.13.x up into 3.0.x
2022-06-10 21:00:51 +02:00
Grégoire Paris
ec6ada4935
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-06-10 20:14:33 +02:00
Grégoire Paris
646cbf6d30
Merge pull request #9828 from MarcBrillault/schema-validator-php8
...
migrate Tools/Schema* to php8.0
2022-06-10 09:12:06 +02:00
Grégoire Paris
47d9d46304
Merge pull request #9834 from doctrine/2.13.x
...
Merge 2.13.x up into 3.0.x
2022-06-10 00:01:53 +02:00
Grégoire Paris
2f16062f78
Merge pull request #9832 from greg0ire/enable-test-dbal-4
...
Run test with DBAL 4
2022-06-09 21:32:32 +02:00
Marc Brillault
e22bfec6b6
migrate Tools/Schema* to php8.0
...
refs #9772
2022-06-09 21:19:18 +02:00
Grégoire Paris
bf24177bfd
Run test with DBAL 4
2022-06-09 21:16:36 +02:00
Grégoire Paris
62eb3bd96c
Merge pull request #9829 from MarcBrillault/fix-build
...
Address removals of doctrine-dbal
2022-06-09 21:12:23 +02:00
Grégoire Paris
e1ebd77811
Run test only with DBAL 3
...
With DBAL 4, there is no longer a filtering of assets.
2022-06-09 19:40:41 +02:00
Grégoire Paris
69253bc083
Use a better check for the DBAL version
...
It seems AbstractPlatform::getGuidExpression() cannot do the trick, as
it is missing from both branches.
2022-06-09 19:40:41 +02:00
Grégoire Paris
36b35f99a4
Run foreign key tests on all platforms
...
SQLite now supports foreign keys.
2022-06-09 17:14:36 +02:00
Marc Brillault
a91d208d10
Address removals of doctrine-dbal
...
- Doctrine\DBAL\Schema\Visitor\RemoveNamespacedAssets
- Doctrine\DBAL\Schema\Schema::visit
- Doctrine\DBAL\Tools\Console\Command\ReservedWordsCommand
2022-06-09 17:14:14 +02:00
Grégoire Paris
89dd9dd9ed
Merge pull request #9815 from greg0ire/fix-deprecation-fk
...
Address deprecation of supportsForeignKeyConstraints()
2022-06-03 21:43:15 +02:00
Grégoire Paris
068da9d89f
Address deprecation of supportsForeignKeyConstraints()
...
All platforms are supposed to support foreign key constraints now.
2022-06-03 21:24:19 +02:00
Grégoire Paris
53661fefc9
Merge pull request #9776 from greg0ire/native-types-abstract-query
...
Migrate to PHP 8: AbstractQuery and child classes
2022-06-03 20:53:45 +02:00
Grégoire Paris
d462ed3b4d
Update baseline
2022-06-03 20:51:21 +02:00
Grégoire Paris
4a02a79abb
Remove unneeded checks
...
Both array and ArrayCollection are countable.
2022-06-03 20:51:15 +02:00
Grégoire Paris
2ee4482d00
Remove deprecation when wrong fetch mode is used
2022-06-03 20:51:10 +02:00
Grégoire Paris
9f4339e7dc
Run rector
2022-06-03 20:06:39 +02:00
Alexander M. Turek
7e20e97ee0
Remove MockBuilderCompatibilityTools ( #9814 )
2022-06-03 19:57:49 +02:00
Grégoire Paris
86d23f42db
Add native types to AbstractQuery
2022-06-03 19:57:23 +02:00
Alexander M. Turek
b8299feae0
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
PHPStan 1.7.9 (#9812 )
Remove empty test file (#9805 )
Remove calls to deprecated MockBuilder::setMethods() (#9808 )
Deprecate passing null to Query::setFirstResult()
Rename Abstract*Test to *TestCase (#9806 )
Add primary key on temp table (#9770 )
Fix wrong types (#9802 )
Widen return type
Update baseline
Fix
Add type for AssociationMapping
2022-06-03 13:36:16 +02:00
Grégoire Paris
ec03eb3451
Merge pull request #9800 from greg0ire/rector-tests
...
Migrate tests to PHP8 syntax
2022-06-02 08:36:34 +02:00
Grégoire Paris
4117209b69
Revert to normal properties
...
The order is not the same as in the constructor, and that seems to
matter.
2022-06-02 07:24:48 +02:00
Grégoire Paris
a870290575
Add test to exclude rule
2022-06-02 07:24:48 +02:00
Grégoire Paris
e7a466b708
fix cs
2022-06-02 07:24:48 +02:00
Grégoire Paris
66ae30085b
Adjust expectations
2022-06-01 22:51:13 +02:00
Grégoire Paris
c49636c923
Revert to untyped property
...
This causes "Cannot assign string to property
Doctrine\Tests\Models\Cache\ComplexAction::$action2 of type
Doctrine\Tests\Models\Cache\Action" for some reason.
2022-06-01 22:51:13 +02:00
Grégoire Paris
2f6303faef
Revert to untyped property
...
This causes the following error for some reason:
Typed property Doctrine\Tests\ORM\Functional\TrainOrder::$train must not
be accessed before initialization
2022-06-01 22:51:13 +02:00
Grégoire Paris
8d4c3d3a34
Fix wrong types
2022-06-01 22:51:13 +02:00
Grégoire Paris
d212e52a20
Migrate tests to PHP 8
2022-06-01 22:51:11 +02:00
Grégoire Paris
301892bcff
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-06-01 22:44:52 +02:00
Alexander M. Turek
62892dc4e4
Made setters parameters mandatory ( #9798 )
2022-05-31 07:58:35 +02:00
Alexander M. Turek
f08aa92da0
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Add missing import (#9796 )
Deprecate calling setters without arguments (#9791 )
Move duplicate fixture into dedicated file (#9789 )
MockTreeWalker should be an SqlWalker (#9790 )
2022-05-31 00:43:58 +02:00
Vincent Langlet
e5fe46a051
Precise phpdoc of getRootEntities ( #9778 )
...
* Precise phpdoc of getRootEntities
* Restrict from param
* Prefer phpdoc
2022-05-30 20:43:24 +02:00
Alexander M. Turek
0c8808a57a
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Make phpdoc more precise
Deprecate setting fetch mode to random integers
Prepare split of output walkers and tree walkers (#9786 )
PHPStan 1.7.0 (#9785 )
Deprecate passing null to Query::setDQL()
Kill call_user_func(_array) (#9780 )
Fix wrong types for AbstractQuery and child classes (#9774 )
Document callable as possible
Remove override phpdoc tag
Add use statement (#9769 )
2022-05-24 21:16:11 +02:00
Grégoire Paris
9384ca8e20
Merge pull request #9755 from greg0ire/mandatory-class-name-arg
...
Require new argument to joinColumnName()
2022-05-20 22:00:16 +02:00
Grégoire Paris
5e536ed412
Require new argument to joinColumnName()
2022-05-20 21:53:02 +02:00
Grégoire Paris
bb1fdcfa77
Merge pull request #9767 from greg0ire/3.0.x
...
Merge 2.13.x up into 3.0.x
2022-05-18 21:05:11 +02:00
Grégoire Paris
b91825bc73
Remove static PHP driver
...
It is deprecated in favor of its parent class.
2022-05-18 20:58:46 +02:00
Grégoire Paris
e879ce0b12
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-05-18 08:02:06 +02:00
Grégoire Paris
c8735de2c1
Merge pull request #9758 from greg0ire/native-types-ns
2022-05-17 11:47:06 +02:00
Grégoire Paris
98cf5836fd
Use native type declarations for naming strategies
2022-05-17 09:16:50 +02:00
Grégoire Paris
72810e9c05
Use createSchemaForModels()
...
This allows to get rid of tearDown(), which contained a special handling
that is no longer necessary since we switched away from explicitely
managed sequences, and caused the test suite to fail.
2022-05-16 22:38:59 +02:00
Grégoire Paris
3404ac174e
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-05-16 22:02:37 +02:00
Grégoire Paris
60f59b29ed
Merge pull request #9757 from greg0ire/3.0.x
...
3.0.x
2022-05-12 09:24:53 +02:00
Grégoire Paris
0f7ae0a660
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-05-12 09:06:58 +02:00
Alexander M. Turek
d294e1d453
Add native types to reflection property classes ( #9631 )
2022-05-11 20:34:49 +02:00
Grégoire Paris
1c97f970eb
Merge pull request #9741 from greg0ire/number-aware-only
...
Make UnderscoreNamingStrategy number-aware only
2022-05-11 20:33:36 +02:00
Grégoire Paris
8117f42634
Make UnderscoreNamingStrategy number-aware only
2022-05-11 20:12:16 +02:00
Alexander M. Turek
e83404e57d
Update Psalm baseline
2022-05-11 12:31:17 +02:00
Alexander M. Turek
499409dbc1
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Update Psalm baseline (#9751 )
Omit version number in README (#9749 )
2022-05-11 12:30:18 +02:00
Grégoire Paris
3da3becc24
Merge pull request #9750 from doctrine/2.13.x
2022-05-10 11:52:23 +02:00
Sergei Morozov
a711fad058
Merge pull request #9742 from morozov/dbal-4@dev-static-analysis
...
Run static analysis with DBAL 4@dev
2022-05-08 12:49:49 -07:00
Sergei Morozov
2e856599b3
Run static analysis with DBAL 4@dev
2022-05-08 12:23:35 -07:00
Sergei Morozov
0119d8cbbc
Accommodate API changes in the Column class
...
See https://github.com/doctrine/dbal/pull/3511
2022-05-08 11:54:22 -07:00
Sergei Morozov
d8159b8be2
Suppress known issues related to sequence-based identity generation
...
See https://github.com/doctrine/orm/issues/8850
2022-05-08 11:50:55 -07:00
Sergei Morozov
10442a7b4e
Assert that date interval expressions are numeric strings
...
See https://github.com/doctrine/dbal/pull/3498
2022-05-08 11:50:55 -07:00
Sergei Morozov
413e2a79fb
Separate PHPStan configuration for DBAL 4
...
See https://github.com/doctrine/dbal/pull/3480
2022-05-08 11:50:24 -07:00
Grégoire Paris
cfb0f7ffa7
Merge pull request #9738 from greg0ire/uuid-traces
...
Address some deprecations
2022-05-08 11:11:31 +02:00
Sergei Morozov
7e9ef10f67
Merge pull request #9740 from morozov/dbal-4@dev-pgsql
...
Build with DBAL 4@dev on PostgreSQL
2022-05-07 13:54:52 -07:00
Sergei Morozov
38f3d71a2f
Merge pull request #9735 from morozov/dbal-4@dev-mysql
...
Build with DBAL 4@dev on MySQL and MariaDB
2022-05-07 13:54:37 -07:00
Sergei Morozov
9eba533f7c
Build with DBAL 4@dev on PostgreSQL
2022-05-07 12:47:26 -07:00
Sergei Morozov
9acdac02cf
Account for DBAL 4 no longer reordering table columns
...
See https://github.com/doctrine/dbal/pull/4777
2022-05-07 12:45:15 -07:00
Sergei Morozov
dfb7c1cc38
Build with DBAL 4@dev on MySQL and MariaDB
2022-05-07 08:11:56 -07:00
Sergei Morozov
702b491981
Account for DBAL 4 no longer reordering table columns
...
See https://github.com/doctrine/dbal/pull/4777
2022-05-07 08:11:56 -07:00
Sergei Morozov
44207c1628
Cast port in PHPUnit configuration to int
...
See https://github.com/doctrine/dbal/pull/2854
2022-05-07 08:11:01 -07:00
Sergei Morozov
85cfd10cae
Merge branch '2.13.x' into 3.0.x
2022-05-07 07:59:50 -07:00
Grégoire Paris
6ead3a5cbb
Make targetEntity mandatory
2022-05-07 15:47:05 +02:00
Grégoire Paris
e1586ea6cb
Remove deprecated class
2022-05-07 15:45:56 +02:00
Grégoire Paris
72d88a2d69
Address deprecations
2022-05-07 15:41:11 +02:00
Grégoire Paris
3f5a1054a8
Remove remnants of UuidGeneratorStrategy
2022-05-07 15:38:41 +02:00
Sergei Morozov
134f12f419
Merge pull request #9734 from morozov/dbal-4.0.x-dev
...
Build with DBAL 4@dev on SQLite
2022-05-06 06:51:16 -07:00
Sergei Morozov
f3113f1a2f
Build with DBAL 4@dev on SQLite
2022-05-06 06:36:23 -07:00
Alexander M. Turek
5d860bfc9b
Merge pull request #9727 from morozov/dbal-4.0.x-dev
...
Run builds with DBAL 4.0.x-dev
2022-05-06 08:25:43 +02:00
Sergei Morozov
aa8c2937d7
Catch exception from Connection::commit()
2022-05-05 22:14:02 -07:00
Sergei Morozov
38e954248c
Improve mocks
2022-05-05 22:14:02 -07:00
Sergei Morozov
6c64f7db34
Quote only strings
...
See https://github.com/doctrine/dbal/pull/3488
2022-05-05 22:14:01 -07:00
Sergei Morozov
d4a9015c2b
Look up only string parameter types
...
See https://github.com/doctrine/dbal/pull/3569
2022-05-05 22:14:01 -07:00
Sergei Morozov
0c745d9021
Pass column name as part of the definition
...
See https://github.com/doctrine/dbal/pull/3583
2022-05-05 22:14:00 -07:00
Sergei Morozov
6ef4b5f396
Merge branch '2.13.x' into 3.0.x
2022-05-05 15:54:14 -07:00
Alexander M. Turek
ee83302751
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Allow doctrine/deprecations 1.0 (#9723 )
Allow setting column options like `charset` and `collation` everywhere (#9655 )
Fix psalm annotation
2022-05-05 18:09:05 +02:00
Sergei Morozov
7e83c9231d
Merge pull request #9728 from morozov/phpunit-mysql-table-options
...
Test MySQL DDL using explicit table options
2022-05-04 12:23:54 -07:00
Sergei Morozov
f5e922ed92
Test MySQL DDL using explicit table options
2022-05-04 09:23:13 -07:00
Sergei Morozov
3c41e421de
Remove ConnectionMock ( #9724 )
...
* Remove ConnectionMock::getExecuteStatements()
* Remove ConnectionMock::quote()
* Remove ConnectionMock
2022-05-02 21:30:40 +00:00
Grégoire Paris
4c2950a9da
Remove last references to ClassMetadataInfo ( #9713 )
...
* Remove disconnected class metadata factory
It is unused apart from a tests where it is easily replaced.
* Remove ClassMetadataInfo
It has been deprecated for a long, long time.
2022-05-02 19:55:42 +02:00
Sergei Morozov
b8d3929dce
Remove DriverResultMock ( #9722 )
2022-05-02 18:31:33 +02:00
Sergei Morozov
a8b4f05418
Remove ConnectionMock::delete() ( #9717 )
2022-05-02 17:14:18 +02:00
Sergei Morozov
f671fa8477
Remove DatabasePlatformMock ( #9716 )
2022-05-02 16:56:16 +02:00
Alexander M. Turek
53e8674899
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Psalm 4.23, PHPStan 1.6.3 (#9718 )
2022-05-02 11:18:49 +02:00
Sergei Morozov
11049b441e
Remove some mock classes ( #9715 )
2022-05-01 21:28:30 +00:00
Sergei Morozov
6fe69f16e2
Remove non-API DriverConnectionMock methods ( #9709 )
2022-05-01 22:37:32 +02:00
Grégoire Paris
8353e981be
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-05-01 22:24:36 +02:00
Sergei Morozov
ae76d91437
Merge branch '2.13.x' into 3.0.x
2022-05-01 12:27:51 -07:00
Sergei Morozov
04830b787c
Merge pull request #9705 from morozov/remove-require-conversion
...
Remove support for Type::canRequireSQLConversion()
2022-05-01 11:42:42 -07:00
Sergei Morozov
fa844b1274
Remove support for Type::canRequireSQLConversion()
2022-04-30 12:07:31 -07:00
Grégoire Paris
3043dcc823
Merge remote-tracking branch 'origin/2.13.x' into 3.0.x
2022-04-29 08:57:20 +02:00
Grégoire Paris
7f2dd9bea1
Remove invalid mapping
...
The named queries feature has been removed in 3.0
2022-04-27 11:47:51 +02:00
Alexander M. Turek
01edf115db
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
PHPStan 1.6.1 (#9688 )
Drop SymfonyStyle[listing] for sqls (#9679 )
Remove dynamic property declarations (#9683 )
PHPStan 1.6.0 (#9682 )
Validate XML mapping against XSD file
Document ORM drivers only really load ORM metadata
Fix HydrationException::invalidDiscriminatorValue parameter type (#9676 )
Fix type on ClassMetadata discriminatorMap (#9675 )
2022-04-27 10:30:29 +02:00
Alexander M. Turek
aebd3f30cb
Remove the doctrine binary ( #9662 )
2022-04-22 22:46:50 +02:00
Alexander M. Turek
801a7504a6
Merge branch '2.13.x' into 3.0.x
...
* 2.13.x:
Conditionally extend the old AnnotationDriver class (#9671 )
2022-04-22 20:12:06 +02:00
Alexander M. Turek
a5ad24c0fd
Drop support for persistence 2 ( #9665 )
...
* Drop support for persistence 2
* Switch to the common static analysis job
2022-04-22 20:09:39 +02:00
Alexander M. Turek
682b4e39fb
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Deprecate the doctrine binary (#9661 )
ScalarColumnHydrator: prevent early-bail on falsy values (#9663 )
Fix enum hydration when fetching partial results (#9657 )
2022-04-19 21:34:02 +02:00
Alexander M. Turek
046683ab60
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Indicate support for doctrine/persistence 3 (#9656 )
Fix tests for enum ID hydration (#9658 )
Revert "Use charset/collation from column or table default when creating relations (#9636 )"
Fix test file/class names (#9649 )
2022-04-15 13:22:31 +02:00
Alexander M. Turek
29a3495c8b
Remove console helper ( #9640 )
2022-04-11 12:43:41 +02:00
Alexander M. Turek
b2ca75e074
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Leverage generic persistence event classes (#9633 )
Fix static analysis for Persistence 2.5 (#9648 )
Improve exception message (#9646 )
Deprecate console helper (#9641 )
Use charset/collation from column or table default when creating relations (#9636 )
Support Enum IDs and search by Enum fields (#9629 )
Fix composer install in contributing readme
2022-04-11 12:07:29 +02:00
Grégoire Paris
16748bdee9
Merge pull request #7196 from greg0ire/document_exception_split_bc_breaks
...
Document exception-splitting-related BC-breaks
2022-04-10 12:12:29 +02:00
Grégoire Paris
7ef5f7004d
Document exception-splitting-related BC-breaks
...
Closes #7194
2022-04-09 11:10:59 +02:00
Alexander M. Turek
b7ff9db6e7
Remove deprecated handling of custom ObjectRepository implementations ( #9634 )
2022-04-08 01:25:27 +02:00
Alexander M. Turek
953c63392c
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Deprecate custom ObjectRepository implementations (#9533 )
Fix types on walkLiteral() and walkLikeExpression() (#9566 )
2022-04-06 13:59:44 +02:00
Alexander M. Turek
476a6ba935
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Add support for array of enums (#9497 )
explicitly use the non-deprecated ORMException
2022-04-05 13:05:28 +02:00
Alexander M. Turek
6e65db5d2d
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Fix types on ResultSetMapping (#9621 )
2022-04-04 22:14:14 +02:00
Alexander M. Turek
30591eaf56
Add native types to ResultSetMapping ( #9620 )
2022-04-04 17:36:54 +02:00
Alexander M. Turek
435587c260
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Support enums as default values (#9616 )
Skip tests requiring ObjectManagerAware (#9612 )
Remove "Description of" PHPDoc (#9611 )
2022-03-31 00:19:16 +02:00
Alexander M. Turek
6a15af599c
Remove support for ObjectManagerAware ( #9614 )
2022-03-28 21:07:55 +02:00
Alexander M. Turek
6ba0455129
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Update psalm.xml
PHPStan 1.5.0 (#9607 )
Remove Sphinx config
Indicate what feature is deprecated
Implement int-mask-of where appropriate
Use correct syntax for external links
Update XmlExporter.php - Type problem in php8.x (#9589 )
Ignore deprecation from Persistence
Stands with Ukraine (#9567 )
Use internal links when self-referencing
Link to docs for the stable version
2022-03-28 10:51:09 +02:00
Grégoire Paris
793a3e3b75
Merge pull request #9597 from greg0ire/drop-ns-aliases
...
Remove support for entity namespace aliases
2022-03-20 19:15:30 +01:00
Grégoire Paris
a02dad303c
Remove support for entity namespace aliases
2022-03-20 15:38:36 +01:00
Grégoire Paris
fc7e1c4e39
Merge remote-tracking branch 'origin/2.12.x' into 3.0.x
2022-03-20 14:38:53 +01:00
Grégoire Paris
032dd3289a
Merge remote-tracking branch 'origin/2.12.x' into 3.0.x
2022-03-20 12:37:58 +01:00
Grégoire Paris
ab991de8a2
Merge remote-tracking branch 'origin/2.12.x' into 3.0.x
2022-03-19 13:47:54 +01:00
Alexander M. Turek
f14f5dc72c
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Leverage MemcachedAdapter::isSupported() (#9578 )
Baseline Psalm errors caused by DBAL 3.3.3 (#9577 )
Make sure MemcachedAdapter is supported before tring to use it (#9574 )
Fixing `:doc:` link (#9569 )
Adding PHP attributes (#9555 )
Remove reference to removed class
2022-03-11 00:06:20 +01:00
Alexander M. Turek
35615ef60e
Merge pull request #9559 from doctrine/2.12.x
2022-03-03 20:30:55 +01:00
Alexander M. Turek
7f51f6d6ad
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Leverage Lexer's Token type
2022-03-01 00:12:27 +01:00
Alexander M. Turek
9ddd82bc3c
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Update baselines for Lexer 1.2.3 (#9546 )
2022-02-28 14:13:43 +01:00
Alexander M. Turek
4292d8e0e6
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Document QueryComponent array shape (#9527 )
Improve templating
Un-deprecate the current proxy mechanism (#9532 )
Remove unused methods
Fix bug-#9536
2022-02-25 15:05:03 +01:00
Alexander M. Turek
5ebe984194
Add native types to SQLFilter ( #9524 )
2022-02-24 11:15:21 +01:00
Grégoire Paris
1712e3cbd0
Merge remote-tracking branch 'origin/2.12.x' into 3.0.x
2022-02-22 18:14:53 +01:00
Alexander M. Turek
87b894ea22
Leverage the Stringable interface ( #9535 )
2022-02-22 00:47:51 +01:00
Alexander M. Turek
597460d5ea
Add native types to caches ( #9508 )
2022-02-22 00:47:00 +01:00
Alexander M. Turek
d739e44ee6
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Make creating test models more straightforward
Trigger the desired code path
Fix syntax typo in attributes reference (#9513 )
Constructor-Argument "options" has the same type as the associated property. (#9501 )
2022-02-20 12:23:23 +01:00
Alexander M. Turek
6b33fa6ddd
Add native types to EntityRepository ( #9515 )
2022-02-17 23:38:31 +01:00
Alexander M. Turek
3a9cc3d258
Remove TreeWalkerChainIterator ( #9520 )
2022-02-16 09:19:54 +01:00
Alexander M. Turek
dd4a38ce9f
Merge 2.12.x into 3.0.x ( #9518 )
2022-02-15 23:11:54 +01:00
Alexander M. Turek
4158915af3
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Fix types on caches (#9507 )
Fix AbstractQuery::setParameter phpdoc (#9504 )
Added "false" value to $columnPrefix type declaration. (#9493 )
2022-02-14 09:48:56 +01:00
Alexander M. Turek
954439af64
Remove quoting methods from ClassMetadata ( #9500 )
2022-02-11 21:09:32 +01:00
Alexander M. Turek
a74807aa86
Add native types to persisters ( #9469 )
2022-02-11 02:13:58 +01:00
Alexander M. Turek
0d4281ddfa
Add native types to QueryBuilder ( #9490 )
2022-02-10 23:34:28 +01:00
Alexander M. Turek
32214ddaa6
Remove various deprecated methods and properties ( #9498 )
2022-02-10 09:33:11 +01:00
Alexander M. Turek
3a43f924c6
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Fix types on QueryBuilder (#9492 )
Fix types on EntityRepository (#9474 )
Avoid calling merge() (#9489 )
PHPStan 1.4.6, Psalm 4.20.0 (#9491 )
Fix `#[DiscriminatorMap]` params (#9487 )
Run tests with stricter error handling (#9482 )
2022-02-09 01:05:25 +01:00
Alexander M. Turek
d13d0f5848
Remove ability to merge detached entities ( #9488 )
2022-02-09 00:43:44 +01:00
Alexander M. Turek
fd83543026
Remove ability to flush the EM partially ( #9485 )
2022-02-07 22:29:51 +01:00
Alexander M. Turek
607911ff27
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Modernize strpos() calls (#9480 )
Fix types on persisters (#9466 )
Rename DoctrineSetup to ORMSetup (#9481 )
Remove useless catches
2022-02-07 09:41:12 +01:00
Alexander M. Turek
e6f07fa0b1
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Deprecate methods removed in 3.0 (#9475 )
Skip tests related to PersistentObject if that class is missing (#9472 )
Run Postgres 14 and MariaDB 10.6 in CI (#9470 )
2022-02-05 23:00:32 +01:00
Alexander M. Turek
1c67f4274b
Remove ability to clear the UoW partially ( #9471 )
2022-02-05 18:00:37 +01:00
Alexander M. Turek
5efdff2a4f
Remove PHP 7 code ( #9462 )
2022-02-02 22:53:48 +01:00
Alexander M. Turek
b15b95ee8f
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Check requirements for metadata drivers (#9459 )
PDO is not a required extension (#9457 )
Check requirements for metadata drivers (#9452 )
Remove trailing underscore (#9446 )
2022-02-01 22:15:51 +01:00
Alexander M. Turek
b0a351f55a
Remove support for Doctrine Cache ( #9456 )
2022-02-01 13:47:39 +01:00
Alexander M. Turek
1ea83e5774
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Support enums in findBy() calls (#9453 )
Streamline cache creation in tests (#9451 )
2022-01-31 23:13:42 +01:00
Alexander M. Turek
4244dfe0a2
Add more native types to entity manager implementations ( #9450 )
2022-01-31 22:42:21 +01:00
Alexander M. Turek
e7e9db8cee
Remove deprecated Setup class ( #9447 )
2022-01-31 09:11:39 +01:00
Alexander M. Turek
6b53ac6790
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Document the new DoctrineSetup class (#9448 )
2022-01-31 09:09:23 +01:00
Alexander M. Turek
9872d1c997
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Introduce DoctrineSetup as a replacement for Setup (#9443 )
Introduce __unserialize behaviour in docs (#9390 )
Adapt test logic to PHP and SQLite II (#9442 )
Use the identify generator strategy
Added php 8.1 to CI
Psalm 4.19.0, PHPStan 1.4.3 (#9438 )
Ignore PHPUnit result cache everywhere (#9425 )
2022-01-31 00:02:14 +01:00
Ahmadou Waly NDIAYE
31b7d78516
Removing the deprecated Named (Native) Queries in Metadata/EntityRepository ( #9428 )
...
This feature has been deprecated.
2022-01-30 15:57:12 +01:00
Alexander M. Turek
36dcf15ebc
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Introduce assertQueryCount (#9423 )
2022-01-24 11:44:27 +01:00
Alexander M. Turek
56021c1af9
Remove DBAL 2 compatible SQL logging ( #9422 )
2022-01-24 08:09:53 +01:00
Alexander M. Turek
1d8dd53995
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Add support for PHP 8.1 enums in embedded classes (#9419 )
Switch tests to the middleware logging system (#9418 )
Added class-string typehint on $targetEntity (#9415 )
Allow DiscriminatorColumn with length=0 (#9410 )
Move UnderscoreNamingStrategyTest to correct namespace (#9414 )
2022-01-24 00:13:13 +01:00
Alexander M. Turek
7375c8a058
Remove old cache accessors and mutators from query classes ( #9392 )
2022-01-23 21:29:47 +01:00
Alexander M. Turek
f61d5c24ac
Remove check for getSQLResultCasing() ( #9413 )
2022-01-20 16:46:37 +01:00
Alexander M. Turek
7c17c11a04
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Fix types on CacheLogger implementations (#9401 )
Rework some tests that use hardcoded DBAL mocks (#9404 )
2022-01-20 15:32:29 +01:00
Alexander M. Turek
d4f5db4b8a
Add native types to CacheLogger implementations ( #9400 )
2022-01-20 10:27:21 +01:00
Alexander M. Turek
be4f88c811
Add native types to EntityHydrator ( #9396 )
2022-01-19 23:41:57 +01:00
Alexander M. Turek
6f150a343b
Remove MultiGetRegion and add native types to Region implementations ( #9403 )
2022-01-19 23:41:26 +01:00
Sergei Morozov
30ea3a26d0
Merge pull request #9402 from morozov/dbal-4.0.x-types
...
Make test types compatible with Doctrine DBAL 4.0.x-dev
2022-01-18 15:53:20 -08:00
Sergei Morozov
cb3f554e38
Make test types compatible with Doctrine DBAL 4.0.x-dev
2022-01-18 15:33:48 -08:00
Alexander M. Turek
3999837279
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Deprecate MultiGetRegion (#9397 )
Fix type on loadCacheEntry (#9398 )
Update baselines for DBAL 3.3 (#9393 )
Accessing private properties and methods from the same class is forbidden (#9311 )
Expose enumType to DBAL to make native DB Enum possible (#9382 )
2022-01-18 23:38:49 +01:00
Alexander M. Turek
9d3ad08a82
Stabilize DBAL dependency ( #9395 )
2022-01-18 10:39:40 +01:00
Alexander M. Turek
a21843f974
Remove AbstractIdGenerator::generate() ( #9367 )
...
… and add native types to ID generators
2022-01-17 23:19:58 +01:00
Alexander M. Turek
fd2bab9b11
Merge branch '2.12.x' into 3.0.x
...
* 2.12.x:
Allow using Enum from different namespace than Entity (#9384 )
Corrected ORM version and added missing dependency (#9386 )
PHPStan 1.4.0 (#9385 )
[GH-9380] Bugfix: Delegate ReflectionEnumProperty::getAttributes(). (#9381 )
Support enum cases as parameters (#9373 )
Add detach as of list cascade-all operations (#9357 )
2022-01-17 11:58:21 +01:00
Alexander M. Turek
7d8134ca36
Merge release 2.11.0 into 3.0.x ( #9369 )
2022-01-12 14:38:36 +01:00
Alexander M. Turek
fc287b2943
Merge branch '3.0.x' into 2.11.x-merge-up-into-3.0.x_gaayDumb
2022-01-12 14:31:05 +01:00
Alexander M. Turek
4b1a419883
Remove Configuration::ensureProductionSettings() ( #9358 )
2022-01-12 14:29:07 +01:00
Alexander M. Turek
002587824e
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Use EntityManagerInterface in type declarations (#9325 )
Add errors caused by the lexer update to the baselines (#9360 )
Generated/Virtual Columns: Insertable / Updateable (#9118 )
Remove the composer/package-versions-deprecated package
Relax assertion to include null as possible outcome (#9355 )
2022-01-12 11:10:49 +01:00
Alexander M. Turek
96241294bb
Add native types to AbstractHydrator and child classes ( #9353 )
2022-01-12 10:57:33 +01:00
Alexander M. Turek
9f85e2769c
Add native types to command classes ( #9359 )
2022-01-11 08:53:17 +01:00
Alexander M. Turek
cf62f931d9
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Leverage generic ObjectManagerDecorator (#9312 )
Fix WhereInWalker description to better describe the behaviour of this class (#9268 )
Regenerate Psalm baseline
Update Psalm baseline for Persistence 2.3 (#9349 )
Support readonly properties for read operations (#9316 )
2022-01-10 00:02:21 +01:00
Alexander M. Turek
1af202bf10
Remove support for Doctrine Cache in second level cache ( #9348 )
2022-01-09 18:25:51 +01:00
Alexander M. Turek
98331a662f
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
PHPStan 1.3.3, Psalm 4.18.1
Remove Psalm job for analyzing DBAL 2
Use the readonly annotation (#9340 )
Add support for custom types with requireSQLConversion and ResultSetMappingBuilder::generateSelectClause()
PSR-6 second level cache
Fix type errors in AbstractQuery and QueryBuilder (#9275 )
Mark columnName as always set
Add support for PHP 8.1 enums.
Remove ignore rules for issues fixed upstream (#9336 )
[GH-9277] deprecate php driver (#9309 )
2022-01-09 17:30:10 +01:00
Benjamin Eberlei
2dce2d0d63
[GH-9277] remove deprecated PHPDriver ( #9308 )
...
* Remove deprecated PHPDriver mapping driver, use StaticPHPDriver instead.
* Update docs
* Housekeeping
* Update UPGRADE.md
2022-01-06 10:24:05 +01:00
Alexander M. Turek
80bca72915
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Added runtime deprecation to `UnitOfWork::commit()` and `clear()` (#9327 )
Document return type of getEntityState() (#9328 )
Fix broken type declaration (#9330 )
Enable some previously disabled PHPCS rules (#9324 )
2022-01-05 10:06:28 +01:00
Alexander M. Turek
2a0c73d0e5
Add types to UnitOfWork ( #9329 )
2022-01-05 07:57:09 +01:00
Alexander M. Turek
ea97ea4c47
Add types to entity manager ( #9292 )
2022-01-05 00:29:22 +01:00
Alexander M. Turek
081f3e43c0
Enable PHPCS rules for PHP 8.0 ( #9293 )
2022-01-02 21:29:38 +01:00
Alexander M. Turek
9b3d89db04
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Run static analysis with language level PHP 8.1 (#9314 )
Document LockMode enums (#9319 )
Document PHPUnit mocks with intersection types (#9318 )
Run PHP CodeSniffer on PHP 8.1 (#9317 )
Psalm 4.17.0 (#9315 )
Run static analysis on PHP 8.1 (#9310 )
2022-01-02 20:18:23 +01:00
Alexander M. Turek
f151daa2f9
Replace mocks with middlewares. ( #9291 )
2022-01-02 13:04:19 +01:00
Alexander M. Turek
4b062a4010
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Bump PHPStan & Psalm (#9303 )
Removing list "Lifecycle Events" (#9243 )
Drop unneeded backslashes
Fix Hidden fields triggering error when using getSingleScalarResult() (#8340 )
Findby joined lookup (#8285 )
2021-12-31 03:09:21 +01:00
Alexander M. Turek
d7817793c3
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Fix type errors in AnnotationDriver (#9274 )
2021-12-30 01:06:24 +01:00
Alexander M. Turek
3f2cc10bfe
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Leverage get_debug_type() (#9297 )
Fix return type (#9295 )
Synchronize Psalm baseline (#9296 )
Fix union type on QueryExpressionVisitorTest::testWalkComparison() (#9294 )
Allow arithmetic expressions within IN operator (#9242 )
Bump reusable workflows
2021-12-28 10:29:29 +01:00
Alexander M. Turek
9c07649287
Drop support for PHP 7.4 ( #9290 )
2021-12-27 19:57:51 +01:00
Alexander M. Turek
47f931c8b2
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Enable UnusedUse sniff again (#9267 )
Whitelist composer plugins used by this repository (#9286 )
Fix XML export for `change-tracking-policy` (#9285 )
Allow symfony/cache 6 (#9283 )
Put actual value instead of index inside $originalEntityData. (#9244 )
Fix return types of cache interfaces (#9271 )
Better explain limitations of DQL "DELETE" (#9281 )
Fix docblocks on nullable EM properties (#9273 )
Docs: use canonical order for phpdoc tags, add missed semicolon (#9190 )
Make PrimaryReadReplicaConnection enforcement explicit (#9239 )
Regenerate Psalm baseline (#9272 )
Improve compatibility with Doctrine DBAL 4 (#9266 )
[docs] Fix wording for attributes=>parameters. (#9265 )
Support for nesting attributes with PHP 8.1 (#9241 )
Revert "Fix SchemaValidator with abstract child class in discriminator map (#9096 )" (#9262 )
Docs: consistency for FQCN, spacing, etc (#9232 )
2021-12-26 01:31:31 +01:00
Alexander M. Turek
61e2caf818
Remove EntityManager::transactional() ( #9278 )
2021-12-25 23:06:29 +01:00
Sergei Morozov
ad97969e93
Remove the orm:ensure-production-settings console command ( #9263 )
2021-12-18 11:17:37 +01:00
Sergei Morozov
25ca8dc835
Merge pull request #9259 from morozov/dbal-3.2-deprecations
...
Do not use AbstractPlatform::canEmulateSchemas()
2021-12-17 07:41:24 -08:00
Sergei Morozov
a41c6d32c3
Do not use AbstractPlatform::canEmulateSchemas()
2021-12-16 22:21:38 -08:00
Alexander M. Turek
f2e34bd172
Remove DBAL 2 compat code
2021-12-16 23:35:09 +01:00
Alexander M. Turek
5bbd1d20cf
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Address more DBAL 3.2 deprecations (#9256 )
2021-12-16 23:28:03 +01:00
Alexander M. Turek
ff44938f9f
Remove Setup::registerAutoloadDirectory() ( #9251 )
2021-12-14 10:06:46 +01:00
Alexander M. Turek
414aae50c2
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Deprecate Setup::registerAutoloadDirectory() (#9249 )
PHPCS 3.6.2, Psalm 4.15.0 (#9247 )
Add SchemaIgnoreClasses property for #8195 . (#9202 )
Remove fallbacks for old doctrine/annotations version (#9235 )
Update docs/en/reference/events.rst
Added psalm param to abstract addFilterConstraint (#9229 )
Merge pull request #9210 from alexander-schranz/patch-2
Fix typo assumptio--> assumption
Update events.rst
Completing links to `EventArgs` classes in overview table
Using `const` for `type`
[Documentation] Events Overview Table: Adding "Passed Argument" column
2021-12-14 00:12:10 +01:00
Alexander M. Turek
36160a81fb
Remove YAML metadata mapping ( #9237 )
2021-12-13 19:43:11 +01:00
Alexander M. Turek
36a4f662b2
Remove code generators ( #9226 )
2021-12-11 13:31:40 +01:00
Alexander M. Turek
3d406e5213
Remove the Version class ( #9227 )
2021-12-06 13:27:13 +01:00
Alexander M. Turek
61237d4c08
Merge 2.11.x into 3.0.x ( #9220 )
2021-12-03 18:59:43 +01:00
Alexander M. Turek
341c6b2929
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Add missing deprecations for YAML metadata mapping (#9206 )
Drop support for DBAL 3.1
Psalm 4.13.1, PHPStan 1.2.0 (#9204 )
Add a psalm type for field mapping
Use `equal to` instead of `equal of` in `assertSqlGeneration()` (#9195 )
Adding Attributes code block (#9161 )
2021-11-29 17:28:44 +01:00
Grégoire Paris
4f7a2dfb50
Merge pull request #9197 from greg0ire/3.0.x
...
Merge 2.11.x into 3.0.x
2021-11-20 15:56:19 +01:00
Grégoire Paris
0542c12aae
Merge remote-tracking branch 'origin/2.11.x' into 3.0.x
2021-11-20 15:46:04 +01:00
Mariusz Soltys
203cd6ecf2
Changed EntityRepository count method $criteria parameter to optional ( #9104 )
...
Currently to get count of all items there is need to provide empty array
to count() method as $criteria parameter is required. I believe there
shouldn't be a need to provide it if I want to count all Entities
without any criteria.
2021-10-11 17:42:13 +02:00
Alexander M. Turek
2adc193421
Bump required PHP version to 7.4 ( #9094 )
2021-10-05 20:14:12 +02:00
Alexander M. Turek
fe2ebeef25
Merge 2.11.x into 3.0.x ( #9093 )
...
Merge 2.11.x into 3.0.x
2021-10-05 15:18:53 +02:00
Grégoire Paris
e9cd90f52e
Refactor ORMException into an interface ( #9085 )
2021-10-05 15:15:40 +02:00
Grégoire Paris
d973fa129b
Merge pull request #9076 from derrabus/remove/hydrate-row
2021-10-04 12:13:52 +02:00
Alexander M. Turek
4fa65f3853
Remove AbstractHydrator::hydrateRow()
2021-10-04 10:42:14 +02:00
Alexander M. Turek
f478fee5fb
Merge 2.11.x into 3.0.x
2021-10-04 10:38:52 +02:00
Alexander M. Turek
4b4022358a
Merge branch '2.11.x' into 3.0.x
...
* 2.11.x:
Deprecate AbstractHydrator::hydrateRow() (#9072 )
Reflect latest minor release in metadata
Revert "Pin laminas/automatic-releases to 1.11.1"
Revert "Try using docker image directly"
Revert "Explicitly disallow workflows for tags"
Revert "Use org admin token"
Signed-off-by: Alexander M. Turek <me@derrabus.de >
2021-10-03 23:59:03 +02:00
Alexander M. Turek
413c33274d
Remove support for DBAL 2 ( #9069 )
2021-10-03 23:32:44 +02:00
Alexander M. Turek
e13714e400
Remote Query::iterate() ( #9070 )
2021-10-03 22:59:44 +02:00
Grégoire Paris
bcd6ac885d
Merge pull request #9066 from doctrine/2.10.x-merge-up-into-3.0.x_6159cb4217e697.30353290
...
Merge release 2.10.0 into 3.0.x
2021-10-03 17:51:19 +02:00
Grégoire Paris
512dfd6aaf
Merge remote-tracking branch 'origin/2.10.x' into 3.0.x
2021-10-03 17:40:24 +02:00
Alexander M. Turek
d95f304073
Remove TABLE and UUID strategies ( #9045 )
2021-10-02 18:00:45 +02:00
Kévin Dunglas
18c153ef8a
Merge branch '2.10.x' into 3.0.x
2021-09-30 08:37:31 +02:00
Alexander M. Turek
bb60e06b88
Merge pull request #9044 from doctrine/2.10.x
...
Merge 2.10.x into 3.0.x
2021-09-29 22:45:16 +02:00
Alexander M. Turek
0ae2a2ded8
Merge pull request #9005 from doctrine/2.10.x
...
Merge 2.10.x into 3.0.x
2021-09-12 01:51:58 +02:00
Grégoire Paris
811f1b19bd
Merge pull request #8967 from doctrine/2.10.x
...
Merge 2.10.x into 3.0.x
2021-08-31 23:08:51 +02:00
Grégoire Paris
a0b739c259
Merge pull request #8912 from greg0ire/3.0.x
...
Merge 2.10.x into 3.0.x
2021-08-11 22:45:58 +02:00
Grégoire Paris
cbda203f23
Merge remote-tracking branch 'origin/2.10.x' into 3.0.x
2021-08-11 22:31:29 +02:00
Grégoire Paris
d7a5eab7d5
Merge pull request #8877 from greg0ire/3.0.x
2021-08-03 13:06:16 +02:00
Grégoire Paris
e51f0cec94
Merge remote-tracking branch 'origin/2.10.x' into 3.0.x
2021-08-03 12:42:16 +02:00
Grégoire Paris
c6f8dc2482
Change ->assert* to self::assert*
2021-08-03 12:41:53 +02:00
Grégoire Paris
e3387386e0
Merge pull request #8876 from doctrine/2.10.x
...
Merge 2.10.x up into 3.0.x
2021-08-03 07:46:06 +02:00
Grégoire Paris
520bfa5c42
Merge pull request #8319 from simPod/fix-args
...
Fix variadic args in Expr
2021-07-23 23:45:34 +02:00
Simon Podlipsky
77c73e8801
Fix variadic args in Expr
2021-07-23 10:34:34 +02:00
Grégoire Paris
0a46111bb2
Merge pull request #8849 from doctrine/2.10.x
...
Merge 2.10.x into 3.0.x
2021-07-18 12:47:34 +02:00
Grégoire Paris
551018136b
Merge pull request #8826 from greg0ire/3.0.x
2021-07-08 12:15:53 +02:00
Grégoire Paris
48be0c1bd0
Merge remote-tracking branch 'origin/2.10.x' into 3.0.x
2021-07-06 08:31:57 +02:00
Grégoire Paris
1c983629b5
Merge pull request #8706 from greg0ire/3.0.x
...
Merge 2.9.x into 3.0.x
2021-05-21 09:27:38 +02:00
Grégoire Paris
65160f626d
Merge remote-tracking branch 'origin/2.9.x' into 3.0.x
2021-05-21 09:17:53 +02:00
Grégoire Paris
1445a655fe
Merge pull request #8654 from smilesrg/remove_entitymanager_copy
...
Removed EntityManagerInteface::copy()
2021-04-24 17:05:26 +02:00
Serhii Smirnov
cf8adfe5d3
Updated UPGRADE.md
2021-04-24 15:05:25 +03:00
Grégoire Paris
cf624ebb7b
Merge pull request #8656 from doctrine/2.9.x
...
Manually merge 2.9.x into 3.0.x
2021-04-24 09:59:46 +02:00
Serhii Smirnov
c9a81e5241
#8462 : Removed EntityManagerInterface::copy()
2021-04-23 19:31:40 +03:00
Grégoire Paris
d7e47f413f
Merge pull request #8585 from doctrine/2.9.x
...
Merge 2.9.x into 3.0.x
2021-04-02 09:24:27 +02:00
Grégoire Paris
28b62cfb71
Merge pull request #8560 from doctrine/2.9.x
...
Merge 2.9.x up into 3.0.x
2021-03-25 23:48:51 +01:00