1010
1111use Magento \Framework \App \ResourceConnection ;
1212use Magento \Framework \DB \Ddl \Trigger ;
13+ use Magento \Framework \Mview \View \StateInterface ;
1314
1415class Subscription implements SubscriptionInterface
1516{
@@ -58,7 +59,7 @@ class Subscription implements SubscriptionInterface
5859 *
5960 * @var array
6061 */
61- protected $ ignoredUpdateColumns = [' updated_at ' ];
62+ private $ ignoredUpdateColumns = [];
6263
6364 /**
6465 * @var Resource
@@ -72,14 +73,16 @@ class Subscription implements SubscriptionInterface
7273 * @param \Magento\Framework\Mview\ViewInterface $view
7374 * @param string $tableName
7475 * @param string $columnName
76+ * @param array $ignoredUpdateColumns
7577 */
7678 public function __construct (
7779 ResourceConnection $ resource ,
7880 \Magento \Framework \DB \Ddl \TriggerFactory $ triggerFactory ,
7981 \Magento \Framework \Mview \View \CollectionInterface $ viewCollection ,
8082 \Magento \Framework \Mview \ViewInterface $ view ,
8183 $ tableName ,
82- $ columnName
84+ $ columnName ,
85+ $ ignoredUpdateColumns = []
8386 ) {
8487 $ this ->connection = $ resource ->getConnection ();
8588 $ this ->triggerFactory = $ triggerFactory ;
@@ -88,6 +91,7 @@ public function __construct(
8891 $ this ->tableName = $ tableName ;
8992 $ this ->columnName = $ columnName ;
9093 $ this ->resource = $ resource ;
94+ $ this ->ignoredUpdateColumns = $ ignoredUpdateColumns ;
9195 }
9296
9397 /**
@@ -162,7 +166,7 @@ public function remove()
162166 protected function getLinkedViews ()
163167 {
164168 if (!$ this ->linkedViews ) {
165- $ viewList = $ this ->viewCollection ->getViewsByStateMode (\ Magento \ Framework \ Mview \ View \ StateInterface::MODE_ENABLED );
169+ $ viewList = $ this ->viewCollection ->getViewsByStateMode (StateInterface::MODE_ENABLED );
166170
167171 foreach ($ viewList as $ view ) {
168172 /** @var \Magento\Framework\Mview\ViewInterface $view */
0 commit comments