Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3865835

Browse files
committed
Merge branch '2.14.x' into 3.0.x
* 2.14.x: Deprecate the Annotation interface (doctrine#10178) Bump CI to PHP 8.2 and latest database versions (doctrine#10180) Remove reference to deprecated DriverChain from docs (doctrine#10179)
2 parents 4be38e2 + 75340b6 commit 3865835

49 files changed

Lines changed: 84 additions & 74 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/continuous-integration.yml

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
extension:
4141
- "pdo_sqlite"
4242
include:
43-
- php-version: "8.1"
43+
- php-version: "8.2"
4444
dbal-version: "3@dev"
4545
extension: "pdo_sqlite"
4646
- php-version: "8.1"
4747
dbal-version: "4@dev"
4848
extension: "pdo_sqlite"
49-
- php-version: "8.1"
50-
dbal-version: "3@dev"
49+
- php-version: "8.2"
50+
dbal-version: "default"
5151
extension: "sqlite3"
5252

5353
steps:
@@ -98,19 +98,19 @@ jobs:
9898
strategy:
9999
matrix:
100100
php-version:
101-
- "8.1"
101+
- "8.2"
102102
dbal-version:
103103
- "default"
104+
- "3@dev"
104105
postgres-version:
105-
- "9.6"
106-
- "14"
106+
- "15"
107107
include:
108-
- php-version: "8.1"
108+
- php-version: "8.2"
109109
dbal-version: "4@dev"
110110
postgres-version: "14"
111111
- php-version: "8.2"
112-
dbal-version: "3@dev"
113-
postgres-version: "14"
112+
dbal-version: "default"
113+
postgres-version: "9.6"
114114

115115
services:
116116
postgres:
@@ -164,24 +164,16 @@ jobs:
164164
strategy:
165165
matrix:
166166
php-version:
167-
- "8.1"
167+
- "8.2"
168168
dbal-version:
169169
- "default"
170+
- "3@dev"
170171
- "4@dev"
171172
mariadb-version:
172-
- "10.6"
173+
- "10.9"
173174
extension:
174175
- "mysqli"
175176
- "pdo_mysql"
176-
include:
177-
- php-version: "8.2"
178-
dbal-version: "3@dev"
179-
mariadb-version: "10.6"
180-
extension: "pdo_mysql"
181-
- php-version: "8.2"
182-
dbal-version: "3@dev"
183-
mariadb-version: "10.6"
184-
extension: "mysqli"
185177

186178
services:
187179
mariadb:
@@ -237,9 +229,10 @@ jobs:
237229
strategy:
238230
matrix:
239231
php-version:
240-
- "8.1"
232+
- "8.2"
241233
dbal-version:
242234
- "default"
235+
- "3@dev"
243236
mysql-version:
244237
- "5.7"
245238
- "8.0"
@@ -255,14 +248,6 @@ jobs:
255248
dbal-version: "4@dev"
256249
mysql-version: "8.0"
257250
extension: "pdo_mysql"
258-
- php-version: "8.2"
259-
dbal-version: "3@dev"
260-
mysql-version: "8.0"
261-
extension: "mysqli"
262-
- php-version: "8.2"
263-
dbal-version: "3@dev"
264-
mysql-version: "8.0"
265-
extension: "pdo_mysql"
266251

267252
services:
268253
mysql:

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ As a consequence, the following methods are deprecated:
525525
- `ORMSetup::createAnnotationMetadataConfiguration`
526526
- `ORMSetup::createDefaultAnnotationDriver`
527527

528+
The marker interface `Doctrine\ORM\Mapping\Annotation` is deprecated as well.
529+
All annotation/attribute classes implement
530+
`Doctrine\ORM\Mapping\MappingAttribute` now.
531+
528532
## Deprecated `Doctrine\ORM\Proxy\Proxy` interface.
529533

530534
Use `Doctrine\Persistence\Proxy` instead to check whether proxies are initialized.

docs/en/reference/advanced-configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,15 +399,15 @@ Multiple Metadata Sources
399399

400400
When using different components using Doctrine ORM you may end up
401401
with them using two different metadata drivers, for example XML and
402-
PHP. You can use the DriverChain Metadata implementations to
402+
PHP. You can use the MappingDriverChain Metadata implementations to
403403
aggregate these drivers based on namespaces:
404404

405405
.. code-block:: php
406406
407407
<?php
408-
use Doctrine\ORM\Mapping\Driver\DriverChain;
408+
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
409409
410-
$chain = new DriverChain();
410+
$chain = new MappingDriverChain();
411411
$chain->addDriver($xmlDriver, 'Doctrine\Tests\Models\Company');
412412
$chain->addDriver($phpDriver, 'Doctrine\Tests\ORM\Mapping');
413413

lib/Doctrine/ORM/Mapping/Annotation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Doctrine\ORM\Mapping;
66

7+
/** @deprecated Use {@see MappingAttribute} instead. */
78
interface Annotation
89
{
910
}

lib/Doctrine/ORM/Mapping/AssociationOverride.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @NamedArgumentConstructor
1212
* @Target("ANNOTATION")
1313
*/
14-
final class AssociationOverride implements Annotation
14+
final class AssociationOverride implements MappingAttribute
1515
{
1616
/**
1717
* The join column that is being mapped to the persistent attribute.

lib/Doctrine/ORM/Mapping/AssociationOverrides.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @Target("CLASS")
1818
*/
1919
#[Attribute(Attribute::TARGET_CLASS)]
20-
final class AssociationOverrides implements Annotation
20+
final class AssociationOverrides implements MappingAttribute
2121
{
2222
/**
2323
* Mapping overrides of relationship properties.

lib/Doctrine/ORM/Mapping/AttributeOverride.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @NamedArgumentConstructor
1212
* @Target("ANNOTATION")
1313
*/
14-
final class AttributeOverride implements Annotation
14+
final class AttributeOverride implements MappingAttribute
1515
{
1616
public function __construct(
1717
public string $name,

lib/Doctrine/ORM/Mapping/AttributeOverrides.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @Target("CLASS")
1818
*/
1919
#[Attribute(Attribute::TARGET_CLASS)]
20-
final class AttributeOverrides implements Annotation
20+
final class AttributeOverrides implements MappingAttribute
2121
{
2222
/**
2323
* One or more field or property mapping overrides.

lib/Doctrine/ORM/Mapping/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @Target({"CLASS","PROPERTY"})
1616
*/
1717
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY)]
18-
final class Cache implements Annotation
18+
final class Cache implements MappingAttribute
1919
{
2020
/** @psalm-param 'READ_ONLY'|'NONSTRICT_READ_WRITE'|'READ_WRITE' $usage */
2121
public function __construct(

lib/Doctrine/ORM/Mapping/ChangeTrackingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @Target("CLASS")
1414
*/
1515
#[Attribute(Attribute::TARGET_CLASS)]
16-
final class ChangeTrackingPolicy implements Annotation
16+
final class ChangeTrackingPolicy implements MappingAttribute
1717
{
1818
/** @psalm-param 'DEFERRED_IMPLICIT'|'DEFERRED_EXPLICIT'|'NOTIFY' $value */
1919
public function __construct(

0 commit comments

Comments
 (0)