10
10
11
11
use Magento \Framework \App \ResourceConnection ;
12
12
use Magento \Framework \DB \Ddl \Trigger ;
13
+ use Magento \Framework \Mview \View \StateInterface ;
13
14
14
15
class Subscription implements SubscriptionInterface
15
16
{
@@ -58,7 +59,7 @@ class Subscription implements SubscriptionInterface
58
59
*
59
60
* @var array
60
61
*/
61
- protected $ ignoredUpdateColumns = [' updated_at ' ];
62
+ private $ ignoredUpdateColumns = [];
62
63
63
64
/**
64
65
* @var Resource
@@ -72,14 +73,16 @@ class Subscription implements SubscriptionInterface
72
73
* @param \Magento\Framework\Mview\ViewInterface $view
73
74
* @param string $tableName
74
75
* @param string $columnName
76
+ * @param array $ignoredUpdateColumns
75
77
*/
76
78
public function __construct (
77
79
ResourceConnection $ resource ,
78
80
\Magento \Framework \DB \Ddl \TriggerFactory $ triggerFactory ,
79
81
\Magento \Framework \Mview \View \CollectionInterface $ viewCollection ,
80
82
\Magento \Framework \Mview \ViewInterface $ view ,
81
83
$ tableName ,
82
- $ columnName
84
+ $ columnName ,
85
+ $ ignoredUpdateColumns = []
83
86
) {
84
87
$ this ->connection = $ resource ->getConnection ();
85
88
$ this ->triggerFactory = $ triggerFactory ;
@@ -88,6 +91,7 @@ public function __construct(
88
91
$ this ->tableName = $ tableName ;
89
92
$ this ->columnName = $ columnName ;
90
93
$ this ->resource = $ resource ;
94
+ $ this ->ignoredUpdateColumns = $ ignoredUpdateColumns ;
91
95
}
92
96
93
97
/**
@@ -162,7 +166,7 @@ public function remove()
162
166
protected function getLinkedViews ()
163
167
{
164
168
if (!$ this ->linkedViews ) {
165
- $ viewList = $ this ->viewCollection ->getViewsByStateMode (\ Magento \ Framework \ Mview \ View \ StateInterface::MODE_ENABLED );
169
+ $ viewList = $ this ->viewCollection ->getViewsByStateMode (StateInterface::MODE_ENABLED );
166
170
167
171
foreach ($ viewList as $ view ) {
168
172
/** @var \Magento\Framework\Mview\ViewInterface $view */
0 commit comments