Protected Member Functions | |
_prepareDataForSave (Mage_Core_Model_Abstract $object) |
Definition at line 34 of file Abstract.php.
_prepareDataForSave | ( | Mage_Core_Model_Abstract $ | object | ) | [protected] |
Prepare data for save
Mage_Core_Model_Abstract | $object |
Reimplemented from Mage_Core_Model_Mysql4_Abstract.
Definition at line 42 of file Abstract.php.
00043 { 00044 if (!$object->getId()) { 00045 $object->setCreatedAt(now()); 00046 } 00047 $object->setUpdatedAt(now()); 00048 $data = parent::_prepareDataForSave($object); 00049 return $data; 00050 }