File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
lib/Doctrine/ODM/MongoDB/Repository Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 23
23
use function assert ;
24
24
use function count ;
25
25
use function is_array ;
26
+ use function trigger_deprecation ;
26
27
27
28
/**
28
29
* A DocumentRepository serves as a repository for documents with generic as well as
@@ -89,9 +90,18 @@ public function createAggregationBuilder(): AggregationBuilder
89
90
90
91
/**
91
92
* Clears the repository, causing all managed documents to become detached.
93
+ *
94
+ * @deprecated Deprecated in 2.6, will be removed in 3.0
92
95
*/
93
96
public function clear (): void
94
97
{
98
+ trigger_deprecation (
99
+ 'doctrine/mongodb-odm ' ,
100
+ '2.6 ' ,
101
+ 'The %s() method is deprecated and will be removed in Doctrine ODM 3.0. ' ,
102
+ __METHOD__ ,
103
+ );
104
+
95
105
$ this ->dm ->clear ($ this ->class ->rootDocumentName );
96
106
}
97
107
You can’t perform that action at this time.
0 commit comments