*/ class Mage_Dataflow_Model_Profile_History extends Mage_Core_Model_Abstract { protected function _construct() { $this->_init('dataflow/profile_history'); } protected function _beforeSave() { if (!$this->getProfileId()) { $profile = Mage::registry('current_convert_profile'); if ($profile) { $this->setProfileId($profile->getId()); } } if(!$this->hasData('user_id')) { $this->setUserId(0); } parent::_beforeSave(); return $this; } }