entitySnapshot = $entitySnapshot; parent::__construct( $entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource ); } /** * @inheritdoc */ public function fetchItem() { $item = parent::fetchItem(); if ($item) { $this->entitySnapshot->registerSnapshot($item); } return $item; } /** * @inheritdoc */ protected function beforeAddLoadedItem(\Magento\Framework\DataObject $item) { $this->entitySnapshot->registerSnapshot($item); return $item; } }