File tree 1 file changed +18
-1
lines changed
app/code/Magento/PageBuilder/Model/ResourceModel/Template/Grid
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ class Collection extends TemplateCollection implements SearchResultInterface
31
31
*/
32
32
private $ aggregations ;
33
33
34
+ /** @var string */
35
+ private $ model ;
36
+
37
+ /** @var string */
38
+ private $ resourceModel ;
39
+
34
40
/**
35
41
* @param EntityFactoryInterface $entityFactory
36
42
* @param LoggerInterface $logger
@@ -58,6 +64,8 @@ public function __construct(
58
64
$ connection = null ,
59
65
AbstractDb $ resource = null
60
66
) {
67
+ $ this ->resourceModel = $ resourceModel ;
68
+ $ this ->model = $ model ;
61
69
parent ::__construct (
62
70
$ entityFactory ,
63
71
$ logger ,
@@ -68,10 +76,19 @@ public function __construct(
68
76
);
69
77
$ this ->_eventPrefix = $ eventPrefix ;
70
78
$ this ->_eventObject = $ eventObject ;
71
- $ this ->_init ($ model , $ resourceModel );
79
+ $ this ->_init ($ this -> model , $ this -> resourceModel );
72
80
$ this ->setMainTable ($ mainTable );
73
81
}
74
82
83
+ /**
84
+ * @inheritDoc
85
+ */
86
+ public function _resetState (): void
87
+ {
88
+ parent ::_resetState ();
89
+ $ this ->_init ($ this ->model , $ this ->resourceModel );
90
+ }
91
+
75
92
/**
76
93
* Get aggregations
77
94
*
You can’t perform that action at this time.
0 commit comments