Skip to content

Commit 6a48b07

Browse files
committed
Deprecate annotation classes for named queries
1 parent 0e95838 commit 6a48b07

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

UPGRADE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Upgrade to 2.17
22

3+
## Deprecate annotations classes for named queries
4+
5+
The following classes have been deprecated:
6+
7+
* `Doctrine\ORM\Mapping\NamedNativeQueries`
8+
* `Doctrine\ORM\Mapping\NamedNativeQuery`
9+
* `Doctrine\ORM\Mapping\NamedQueries`
10+
* `Doctrine\ORM\Mapping\NamedQuery`
11+
312
## Deprecate `Doctrine\ORM\Query\Exec\AbstractSqlExecutor::_sqlStatements`
413

514
Use `Doctrine\ORM\Query\Exec\AbstractSqlExecutor::sqlStatements` instead.

lib/Doctrine/ORM/Mapping/NamedNativeQueries.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Is used to specify an array of native SQL named queries.
99
* The NamedNativeQueries annotation can be applied to an entity or mapped superclass.
1010
*
11+
* @deprecated Named queries won't be supported in ORM 3.
12+
*
1113
* @Annotation
1214
* @Target("CLASS")
1315
*/

lib/Doctrine/ORM/Mapping/NamedNativeQuery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Is used to specify a native SQL named query.
99
* The NamedNativeQuery annotation can be applied to an entity or mapped superclass.
1010
*
11+
* @deprecated Named queries won't be supported in ORM 3.
12+
*
1113
* @Annotation
1214
* @Target("ANNOTATION")
1315
*/

lib/Doctrine/ORM/Mapping/NamedQueries.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
namespace Doctrine\ORM\Mapping;
66

77
/**
8+
* @deprecated Named queries won't be supported in ORM 3.
9+
*
810
* @Annotation
911
* @Target("CLASS")
1012
*/

lib/Doctrine/ORM/Mapping/NamedQuery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
namespace Doctrine\ORM\Mapping;
66

77
/**
8+
* @deprecated Named queries won't be supported in ORM 3.
9+
*
810
* @Annotation
911
* @Target("ANNOTATION")
1012
*/

psalm.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
<referencedClass name="Doctrine\ORM\Exception\UnknownEntityNamespace"/>
3939
<referencedClass name="Doctrine\ORM\Mapping\Driver\AnnotationDriver"/>
4040
<referencedClass name="Doctrine\ORM\Mapping\Driver\YamlDriver"/>
41+
<referencedClass name="Doctrine\ORM\Mapping\NamedNativeQueries"/>
42+
<referencedClass name="Doctrine\ORM\Mapping\NamedNativeQuery"/>
43+
<referencedClass name="Doctrine\ORM\Mapping\NamedQueries"/>
44+
<referencedClass name="Doctrine\ORM\Mapping\NamedQuery"/>
4145
<referencedClass name="Doctrine\ORM\Query\AST\InExpression"/>
4246
<referencedClass name="Doctrine\ORM\Tools\Console\Command\ConvertDoctrine1SchemaCommand"/>
4347
<referencedClass name="Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand"/>

0 commit comments

Comments
 (0)