File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 14
14
"php" : " >=7.2.0" ,
15
15
"ext-pdo" : " *" ,
16
16
"yiisoft/yii2" : " ~2.0.0" ,
17
- "smoren/query-relation-manager" : " 2.0.1 "
17
+ "smoren/query-relation-manager" : " 2.0.2 "
18
18
},
19
19
"autoload" : {
20
20
"psr-4" : {
Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ class QueryRelationDataProvider extends BaseDataProvider
38
38
*/
39
39
public $ withoutTotalCount = false ;
40
40
41
+ /**
42
+ * @inheritDoc
43
+ */
44
+ public function init ()
45
+ {
46
+ parent ::init ();
47
+
48
+ if (!($ this ->queryRelationManager instanceof QueryRelationManager)) {
49
+ throw new QueryRelationManagerException (
50
+ "param QueryRelationDataProvider::queryRelationManager is not an instance of QueryRelationManager "
51
+ );
52
+ }
53
+
54
+ $ this ->queryRelationManager = clone $ this ->queryRelationManager ;
55
+ }
56
+
41
57
/**
42
58
* Prepares the data models that will be made available in the current page.
43
59
* @return array the available data models
You can’t perform that action at this time.
0 commit comments