Skip to content

Commit e7c7cb1

Browse files
committed
Deprecate ArrayStatement and ResultCacheStatement
1 parent f8ae949 commit e7c7cb1

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

UPGRADE.md

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

3+
## Deprecated `ArrayStatement` and `ResultCacheStatement` classes.
4+
5+
The `ArrayStatement` and `ResultCacheStatement` classes are deprecated. In a future major release they will be renamed and marked internal as implementation details of the caching layer.
6+
37
## Deprecated `ResultStatement` interface
48

59
1. The `ResultStatement` interface is deprecated. Use the `Driver\Result` and `Abstraction\Result` interfaces instead.

lib/Doctrine/DBAL/Cache/ArrayStatement.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use function count;
1717
use function reset;
1818

19+
/**
20+
* @deprecated
21+
*/
1922
class ArrayStatement implements IteratorAggregate, ResultStatement, Result
2023
{
2124
/** @var mixed[] */

lib/Doctrine/DBAL/Cache/ResultCacheStatement.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
*
3333
* Also you have to realize that the cache will load the whole result into memory at once to ensure 2.
3434
* This means that the memory usage for cached results might increase by using this feature.
35+
*
36+
* @deprecated
3537
*/
3638
class ResultCacheStatement implements IteratorAggregate, ResultStatement, Result
3739
{

0 commit comments

Comments
 (0)