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 1414 "php" : " >=7.2.0" ,
1515 "ext-pdo" : " *" ,
1616 "yiisoft/yii2" : " ~2.0.0" ,
17- "smoren/query-relation-manager" : " 2.0.1 "
17+ "smoren/query-relation-manager" : " 2.0.2 "
1818 },
1919 "autoload" : {
2020 "psr-4" : {
Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ class QueryRelationDataProvider extends BaseDataProvider
3838 */
3939 public $ withoutTotalCount = false ;
4040
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+
4157 /**
4258 * Prepares the data models that will be made available in the current page.
4359 * @return array the available data models
You can’t perform that action at this time.
0 commit comments