Skip to content

Commit d9b2ab4

Browse files
committed
Deprecate getting query parts from QueryBuilder
1 parent d3954ec commit d9b2ab4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

UPGRADE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ awareness about deprecated code.
66
- Use of our low-overhead runtime deprecation API, details:
77
https://github.com/doctrine/deprecations/
88

9+
# Upgrade to 3.8
10+
11+
## Deprecated getting query parts from `QueryBuilder`
12+
13+
The usage of `QueryBuilder::getQueryPart()` and `::getQueryParts()` is deprecated. The query parts
14+
are implementation details and should not be relied upon.
15+
916
# Upgrade to 3.6
1017

1118
## Deprecated not setting a schema manager factory

src/Query/QueryBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,8 @@ public function addOrderBy($sort, $order = null)
12971297
/**
12981298
* Gets a query part by its name.
12991299
*
1300+
* @deprecated The query parts are implementation details and should not be relied upon.
1301+
*
13001302
* @param string $queryPartName
13011303
*
13021304
* @return mixed
@@ -1309,6 +1311,8 @@ public function getQueryPart($queryPartName)
13091311
/**
13101312
* Gets all query parts.
13111313
*
1314+
* @deprecated The query parts are implementation details and should not be relied upon.
1315+
*
13121316
* @return mixed[]
13131317
*/
13141318
public function getQueryParts()

0 commit comments

Comments
 (0)