Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function save(\Magento\Framework\Model\AbstractModel $object)
 {
     $hasDataChanges = $this->isModified($object);
     $object->setIsOptionsSaved(false);
     $result = parent::save($object);
     if ($hasDataChanges && !$object->isOptionsSaved()) {
         $object->saveItemOptions();
     }
     return $result;
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function save(\Magento\Framework\Model\AbstractModel $object)
 {
     if (!$object->isPreventSaving()) {
         return parent::save($object);
     }
 }