_initPreviousData(); return parent::update($data); } protected function _initPreviousData() { if ($primaryKey = $this->getPrimaryKey()) { $this->_previousData = $this->_getFromDb($primaryKey); } return $this; } public function getPreviousData() { return $this->_previousData; } }