File tree Expand file tree Collapse file tree 10 files changed +107
-1
lines changed
Customer/Model/ResourceModel/Address/Grid
Newsletter/Model/ResourceModel
SalesRule/Model/ResourceModel/Rule
lib/internal/Magento/Framework
Model/ResourceModel/Db/Collection Expand file tree Collapse file tree 10 files changed +107
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,16 @@ protected function _construct()
58
58
$ this ->_map ['fields ' ]['block_id ' ] = 'main_table.block_id ' ;
59
59
}
60
60
61
+ /**
62
+ * @inheritDoc
63
+ */
64
+ public function _resetState (): void
65
+ {
66
+ parent ::_resetState ();
67
+ $ this ->_map ['fields ' ]['store ' ] = 'store_table.store_id ' ;
68
+ $ this ->_map ['fields ' ]['block_id ' ] = 'main_table.block_id ' ;
69
+ }
70
+
61
71
/**
62
72
* Returns pairs block_id - title
63
73
*
Original file line number Diff line number Diff line change @@ -51,6 +51,16 @@ protected function _construct()
51
51
$ this ->_map ['fields ' ]['store ' ] = 'store_table.store_id ' ;
52
52
}
53
53
54
+ /**
55
+ * @inheritDoc
56
+ */
57
+ public function _resetState (): void
58
+ {
59
+ parent ::_resetState ();
60
+ $ this ->_map ['fields ' ]['page_id ' ] = 'main_table.page_id ' ;
61
+ $ this ->_map ['fields ' ]['store ' ] = 'store_table.store_id ' ;
62
+ }
63
+
54
64
/**
55
65
* Set first store flag
56
66
*
Original file line number Diff line number Diff line change @@ -94,6 +94,15 @@ public function __construct(
94
94
);
95
95
}
96
96
97
+ /**
98
+ * @inheritDoc
99
+ */
100
+ public function _resetState (): void
101
+ {
102
+ parent ::_resetState ();
103
+ $ this ->_idFieldName = 'entity_id ' ;
104
+ }
105
+
97
106
/**
98
107
* @inheritdoc
99
108
*/
Original file line number Diff line number Diff line change @@ -69,6 +69,15 @@ protected function _construct()
69
69
$ this ->_init (\Magento \Newsletter \Model \Queue::class, \Magento \Newsletter \Model \ResourceModel \Queue::class);
70
70
}
71
71
72
+ /**
73
+ * @inheritDoc
74
+ */
75
+ public function _resetState (): void
76
+ {
77
+ parent ::_resetState ();
78
+ $ this ->_map ['fields ' ]['queue_id ' ] = 'main_table.queue_id ' ;
79
+ }
80
+
72
81
/**
73
82
* Joins templates information
74
83
*
Original file line number Diff line number Diff line change @@ -107,6 +107,22 @@ protected function _construct()
107
107
$ this ->_map ['fields ' ]['store_id ' ] = 'main_table.store_id ' ;
108
108
}
109
109
110
+ /**
111
+ * @inheritDoc
112
+ */
113
+ public function _resetState (): void
114
+ {
115
+ parent ::_resetState ();
116
+ $ this ->_map ['fields ' ]['type ' ] = $ this ->getResource ()->getConnection ()->getCheckSql (
117
+ 'main_table.customer_id = 0 ' ,
118
+ 1 ,
119
+ 2
120
+ );
121
+ $ this ->_map ['fields ' ]['website_id ' ] = 'store.website_id ' ;
122
+ $ this ->_map ['fields ' ]['group_id ' ] = 'store.group_id ' ;
123
+ $ this ->_map ['fields ' ]['store_id ' ] = 'main_table.store_id ' ;
124
+ }
125
+
110
126
/**
111
127
* Set loading mode subscribers by queue
112
128
*
Original file line number Diff line number Diff line change @@ -96,6 +96,15 @@ protected function _construct()
96
96
$ this ->_map ['fields ' ]['rule_id ' ] = 'main_table.rule_id ' ;
97
97
}
98
98
99
+ /**
100
+ * @inheritDoc
101
+ */
102
+ public function _resetState (): void
103
+ {
104
+ parent ::_resetState ();
105
+ $ this ->_map ['fields ' ]['rule_id ' ] = 'main_table.rule_id ' ;
106
+ }
107
+
99
108
/**
100
109
* Map data for associated entities
101
110
*
Original file line number Diff line number Diff line change 9
9
namespace Magento \Framework \Api ;
10
10
11
11
use Magento \Framework \Api \Search \FilterGroupBuilder ;
12
- use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
13
12
14
13
/**
15
14
* Builder for SearchCriteria Service Data Object
Original file line number Diff line number Diff line change @@ -933,5 +933,12 @@ public function __wakeup()
933
933
public function _resetState (): void
934
934
{
935
935
$ this ->clear ();
936
+ // TODO: Is it safe to move the following into clear() ?
937
+ $ this ->_orders = [];
938
+ $ this ->_filters = [];
939
+ $ this ->_isFiltersRendered = false ;
940
+ $ this ->_curPage = 1 ;
941
+ $ this ->_pageSize = false ;
942
+ $ this ->_flags = [];
936
943
}
937
944
}
Original file line number Diff line number Diff line change @@ -119,6 +119,22 @@ public function __construct(
119
119
$ this ->_logger = $ logger ;
120
120
}
121
121
122
+ /**
123
+ * @inheritDoc
124
+ */
125
+ public function _resetState (): void
126
+ {
127
+ parent ::_resetState ();
128
+ $ this ->setConnection ($ this ->_conn );
129
+ $ this ->_idFieldName = null ;
130
+ $ this ->_bindParams = [];
131
+ $ this ->_data = null ;
132
+ $ this ->map = null ;
133
+ $ this ->_fetchStmt = null ;
134
+ $ this ->_isOrdersRendered = false ;
135
+ $ this ->extensionAttributesJoinProcessor = null ;
136
+ }
137
+
122
138
/**
123
139
* Get resource instance.
124
140
*
Original file line number Diff line number Diff line change @@ -145,6 +145,27 @@ protected function _construct() //phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
145
145
{
146
146
}
147
147
148
+ /**
149
+ * @inheritDoc
150
+ */
151
+ public function _resetState (): void
152
+ {
153
+ parent ::_resetState ();
154
+ $ this ->_model = null ;
155
+ $ this ->_resourceModel = null ;
156
+ $ this ->_fieldsToSelect = null ;
157
+ $ this ->expressionFieldsToSelect = [];
158
+ $ this ->_initialFieldsToSelect = null ;
159
+ $ this ->_fieldsToSelectChanged = false ;
160
+ $ this ->_joinedTables = [];
161
+ $ this ->_mainTable = null ;
162
+ $ this ->_resetItemsDataChanged = false ;
163
+ $ this ->_eventPrefix = '' ;
164
+ $ this ->_eventObject = '' ;
165
+ $ this ->_construct ();
166
+ $ this ->_initSelect ();
167
+ }
168
+
148
169
/**
149
170
* Retrieve main table
150
171
*
You can’t perform that action at this time.
0 commit comments