/** * Set model data from info field * * @return $this */ protected function _afterLoad() { parent::_afterLoad(); $info = $this->jsonHelper->jsonDecode($this->getInfo()); if (is_array($info)) { foreach ($info as $key => $value) { $this->setData($key, $value); } } return $this; }
/** * after load * * @return $this */ protected function _afterLoad() { parent::_afterLoad(); $this->setCondition(unserialize($this->getCondition())); return $this; }
/** * Trigger collect totals after loading, if required * * @return $this */ protected function _afterLoad() { // collect totals and save me, if required if (1 == $this->getData('trigger_recollect')) { $this->collectTotals()->save(); } return parent::_afterLoad(); }
/** * After load. * * @return $this */ public function _afterLoad() { parent::_afterLoad(); //@codingStandardsIgnoreStart $this->setCondition(unserialize($this->getCondition())); //@codingStandardsIgnoreEnd return $this; }